Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 18, 2011, 10:13:27 AM (13 years ago)
Author:
youngk
Message:

Dang! Forgot something very serious. Now my changes won't be breaking anymore :)

File:
1 edited

Legend:

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

    r8090 r8091  
    6262    {
    6363#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   
    6472        std::string strCmdLine;
    65         for (int i = 2; i < argc; ++i)
     73        for (int i = MAC_ARGC_HACK; i < argc; ++i)
    6674            strCmdLine = strCmdLine + argv[i] + ' ';
    6775#endif
Note: See TracChangeset for help on using the changeset viewer.