Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

IT WORKS! Orxonox will now run properly with Cocoa - All window issues are fixed. Needs some cleanup, but only little. Rund App from Desktop.@reto: please review my changes. @fabian: watch and learn :)

File:
1 edited

Legend:

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

    r8084 r8090  
    5353#ifdef ORXONOX_USE_WINMAIN
    5454INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)
    55 //#elif defined(ORXONOX_PLATFORM_APPLE)
    56 //int main_mac(int argc, char** argv)
     55#elif defined(ORXONOX_PLATFORM_APPLE)
     56int main_mac(int argc, char** argv)
    5757#else
    5858int main(int argc, char** argv)
    5959#endif
    6060{
    61     COUT(0) << "main mac" << std::endl;
    6261    try
    6362    {
    6463#ifndef ORXONOX_USE_WINMAIN
    6564        std::string strCmdLine;
    66         for (int i = 1; i < argc; ++i)
     65        for (int i = 2; i < argc; ++i)
    6766            strCmdLine = strCmdLine + argv[i] + ' ';
    6867#endif
Note: See TracChangeset for help on using the changeset viewer.