Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 26, 2011, 9:41:28 PM (13 years ago)
Author:
rgrieder
Message:

Merged new revisions (8083 - 8125) from mac_osx to kicklib branch.

Location:
code/branches/kicklib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib

  • code/branches/kicklib/src/Orxonox.cc

    r6417 r8129  
    5353#ifdef ORXONOX_USE_WINMAIN
    5454INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
     55#elif defined(ORXONOX_PLATFORM_APPLE)
     56int main_mac(int argc, char** argv)
    5557#else
    5658int main(int argc, char** argv)
     
    6062    {
    6163#ifndef ORXONOX_USE_WINMAIN
     64
     65// On Apples, the kernel supplies a second argument, which we have to circumvent
     66#ifdef ORXONOX_PLATFORM_APPLE
     67# define MAC_ARGC_HACK 2
     68#else
     69# define MAC_ARGC_HACK 1
     70#endif
     71   
    6272        std::string strCmdLine;
    63         for (int i = 1; i < argc; ++i)
     73        for (int i = MAC_ARGC_HACK; i < argc; ++i)
    6474            strCmdLine = strCmdLine + argv[i] + ' ';
    6575#endif
Note: See TracChangeset for help on using the changeset viewer.