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.

Location:
code/trunk/src/orxonox
Files:
2 edited

Legend:

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

    r3280 r3323  
    278278        boost::filesystem::path folder(ogrePluginsFolder_);
    279279        // Do some SubString magic to get the comma separated list of plugins
    280         SubString plugins(ogrePlugins_, ",", " ", false, 92, false, 34, false, 40, 41, false, '\0');
     280        SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, '(', ')', false, '\0');
    281281        // Use backslash paths on Windows! file_string() already does that though.
    282282        for (unsigned int i = 0; i < plugins.size(); ++i)
  • 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.