Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8132


Ignore:
Timestamp:
Mar 26, 2011, 9:55:08 PM (14 years ago)
Author:
rgrieder
Message:

Unhacked a hack: it's actually not really a hack, but normal behaviour ;)

File:
1 edited

Legend:

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

    r8129 r8132  
    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
    7172   
    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.