CommandoUpdate.cpp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. // CommandoUpdate.cpp : Defines the class behaviors for the application.
  19. //
  20. #include "stdafx.h"
  21. #include "CommandoUpdate.h"
  22. #include "CommandoUpdateDlg.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CCommandoUpdateApp
  30. BEGIN_MESSAGE_MAP(CCommandoUpdateApp, CWinApp)
  31. //{{AFX_MSG_MAP(CCommandoUpdateApp)
  32. // NOTE - the ClassWizard will add and remove mapping macros here.
  33. // DO NOT EDIT what you see in these blocks of generated code!
  34. //}}AFX_MSG
  35. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  36. END_MESSAGE_MAP()
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CCommandoUpdateApp construction
  39. CCommandoUpdateApp::CCommandoUpdateApp()
  40. {
  41. // TODO: add construction code here,
  42. // Place all significant initialization in InitInstance
  43. }
  44. /////////////////////////////////////////////////////////////////////////////
  45. // The one and only CCommandoUpdateApp object
  46. CCommandoUpdateApp theApp;
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CCommandoUpdateApp initialization
  49. BOOL CCommandoUpdateApp::InitInstance()
  50. {
  51. // Standard initialization
  52. // If you are not using these features and wish to reduce the size
  53. // of your final executable, you should remove from the following
  54. // the specific initialization routines you do not need.
  55. #ifdef _AFXDLL
  56. Enable3dControls(); // Call this when using MFC in a shared DLL
  57. #else
  58. Enable3dControlsStatic(); // Call this when linking to MFC statically
  59. #endif
  60. CCommandoUpdateDlg dlg;
  61. m_pMainWnd = &dlg;
  62. int nResponse = dlg.DoModal();
  63. if (nResponse == IDOK)
  64. {
  65. // TODO: Place code here to handle when the dialog is
  66. // dismissed with OK
  67. }
  68. else if (nResponse == IDCANCEL)
  69. {
  70. // TODO: Place code here to handle when the dialog is
  71. // dismissed with Cancel
  72. }
  73. // Since the dialog has been closed, return FALSE so that we exit the
  74. // application, rather than start the application's message pump.
  75. return FALSE;
  76. }