Changeset 7423 for sandbox_qt/src/Orxonox.cc
- Timestamp:
- Sep 12, 2010, 1:39:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox_qt/src/Orxonox.cc
r6417 r7423 34 34 */ 35 35 36 #include "SpecialConfig.h" 37 38 #ifdef ORXONOX_USE_WINMAIN 39 # ifndef WIN32_LEAN_AND_MEAN 40 # define WIN32_LEAN_AND_MEAN 41 # endif 42 #include <windows.h> 43 #endif 36 #include "OrxonoxConfig.h" 44 37 45 38 #include "util/Debug.h" … … 51 44 Main method. Game starts here (except for static initialisations). 52 45 */ 53 #ifdef ORXONOX_USE_WINMAIN54 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)55 #else56 46 int main(int argc, char** argv) 57 #endif58 47 { 59 48 try 60 49 { 61 #ifndef ORXONOX_USE_WINMAIN 62 std::string strCmdLine; 63 for (int i = 1; i < argc; ++i) 64 strCmdLine = strCmdLine + argv[i] + ' '; 65 #endif 66 67 return orxonox::main(strCmdLine); 50 return orxonox::main(argc, argv); 68 51 } 69 52 catch (...)
Note: See TracChangeset
for help on using the changeset viewer.