Changeset 8285 for code/branches/kicklib2/src/Orxonox.cc
- Timestamp:
- Apr 21, 2011, 7:43:10 PM (13 years ago)
- Location:
- code/branches/kicklib2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2
-
code/branches/kicklib2/src/Orxonox.cc
r6417 r8285 53 53 #ifdef ORXONOX_USE_WINMAIN 54 54 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 55 #elif defined(ORXONOX_PLATFORM_APPLE) 56 int main_mac(int argc, char** argv) 55 57 #else 56 58 int main(int argc, char** argv) … … 60 62 { 61 63 #ifndef ORXONOX_USE_WINMAIN 64 65 #ifdef ORXONOX_PLATFORM_APPLE 66 // On Apples, the kernel supplies a second argument, which we have to circumvent 67 const int firstArgument = 2; 68 #else 69 // 0 is the execution path 70 const int firstArgument = 1; 71 #endif 72 62 73 std::string strCmdLine; 63 for (int i = 1; i < argc; ++i)74 for (int i = firstArgument; i < argc; ++i) 64 75 strCmdLine = strCmdLine + argv[i] + ' '; 65 76 #endif
Note: See TracChangeset
for help on using the changeset viewer.