Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 27, 2011, 12:21:55 AM (14 years ago)
Author:
youngk
Message:

Commiting adjustments done for kicklib, now also to mac_osx.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/mac_osx/src/Orxonox.cc

    r8091 r8133  
    6363#ifndef ORXONOX_USE_WINMAIN
    6464
    65 // On Apples, the kernel supplies a second argument, which we have to circumvent
    6665#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;
    6868#else
    69 # define MAC_ARGC_HACK 1
     69        // 0 is the execution path
     70        const int firstArgument = 1;
    7071#endif
    71    
     72       
    7273        std::string strCmdLine;
    73         for (int i = MAC_ARGC_HACK; i < argc; ++i)
     74        for (int i = firstArgument; i < argc; ++i)
    7475            strCmdLine = strCmdLine + argv[i] + ' ';
    7576#endif
Note: See TracChangeset for help on using the changeset viewer.