LightMap.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. /***********************************************************************************************
  19. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LightMap *
  23. * *
  24. * $Archive:: /Commando/Code/Tool $*
  25. * *
  26. * $Author:: Ian_l $*
  27. * *
  28. * $Modtime:: 7/19/01 7:32p $*
  29. * *
  30. * $Revision:: 8 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef __AFXWIN_H__
  36. #error include 'stdafx.h' before including this file for PCH
  37. #endif
  38. // Includes.
  39. #include "resource.h"
  40. #include "LightMapDoc.h"
  41. #include <stdlib.h>
  42. class LightMapApp : public CWinApp
  43. {
  44. public:
  45. // Functions.
  46. char *Working_Path() {return (WorkingPath);}
  47. char *Instance_Name() {return (InstanceName);}
  48. DWORD Application_Version() {return (ApplicationVersion);}
  49. static bool Explorer_Style();
  50. static DWORD File_Dialog_Flags();
  51. static const char *File_Dialog_Filter()
  52. {
  53. return ("Westwood 3D Files (*.w3d)|*.w3d|All Files (*.*)|*.*||");
  54. }
  55. static const char *Document_File_Extension()
  56. {
  57. return (".w3d");
  58. }
  59. protected:
  60. // Functions.
  61. LightMapDoc* GetDoc();
  62. private:
  63. void Do_Version_Check();
  64. char WorkingPath [_MAX_PATH]; // Path of executing application.
  65. char InstanceName [_MAX_PATH]; // Name unique to this instance of the application.
  66. DWORD ApplicationVersion; // Version no. of this application.
  67. // The following is maintained by MFC tools.
  68. public:
  69. LightMapApp();
  70. // Overrides
  71. // ClassWizard generated virtual function overrides
  72. //{{AFX_VIRTUAL(LightMapApp)
  73. public:
  74. virtual BOOL InitInstance();
  75. //}}AFX_VIRTUAL
  76. // Implementation
  77. //{{AFX_MSG(LightMapApp)
  78. afx_msg void OnAppAbout();
  79. afx_msg void OnFileOpen();
  80. //}}AFX_MSG
  81. DECLARE_MESSAGE_MAP()
  82. protected:
  83. };
  84. // Externals.
  85. extern LightMapApp theApp;