Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2009, 3:11:15 PM (15 years ago)
Author:
rgrieder
Message:

ORXONOX_USE_WINMAIN should now work as expected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/Main.cc

    r3280 r3323  
    3535
    3636#include "OrxonoxPrereqs.h"
     37#include "SpecialConfig.h"
     38
     39#ifdef ORXONOX_USE_WINMAIN
     40# ifndef WIN32_LEAN_AND_MEAN
     41#  define WIN32_LEAN_AND_MEAN
     42# endif
     43#include <windows.h>
     44#endif
    3745
    3846#include "util/Debug.h"
     
    5563    try
    5664    {
    57         game = new Game(argc, argv);
     65#ifndef ORXONOX_USE_WINMAIN
     66        std::string strCmdLine;
     67        for (int i = 1; i < argc; ++i)
     68            strCmdLine += argv[i] + std::string(" ");
     69#endif
     70        game = new Game(strCmdLine);
    5871
    5972        game->setStateHierarchy(
Note: See TracChangeset for help on using the changeset viewer.