Changeset 8132 for code/branches/kicklib/src
- Timestamp:
- Mar 26, 2011, 9:55:08 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/src/Orxonox.cc
r8129 r8132 63 63 #ifndef ORXONOX_USE_WINMAIN 64 64 65 // On Apples, the kernel supplies a second argument, which we have to circumvent66 65 #ifdef ORXONOX_PLATFORM_APPLE 67 # define MAC_ARGC_HACK 2 66 // On Apples, the kernel supplies a second argument, which we have to circumvent 67 const int firstArgument = 2; 68 68 #else 69 # define MAC_ARGC_HACK 1 69 // 0 is the execution path 70 const int firstArgument = 1; 70 71 #endif 71 72 72 73 std::string strCmdLine; 73 for (int i = MAC_ARGC_HACK; i < argc; ++i)74 for (int i = firstArgument; i < argc; ++i) 74 75 strCmdLine = strCmdLine + argv[i] + ' '; 75 76 #endif
Note: See TracChangeset
for help on using the changeset viewer.