[Orxonox-commit 3608] r8293 - code/branches/kicklib2/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Fri Apr 22 03:38:10 CEST 2011
Author: rgrieder
Date: 2011-04-22 03:38:10 +0200 (Fri, 22 Apr 2011)
New Revision: 8293
Modified:
code/branches/kicklib2/src/libraries/core/Core.cc
Log:
Trying to operate a console while there is none is not exactly well defined behaviour...
This happened when compiling with ORXONOX_USE_WINMAIN.
Modified: code/branches/kicklib2/src/libraries/core/Core.cc
===================================================================
--- code/branches/kicklib2/src/libraries/core/Core.cc 2011-04-22 01:36:39 UTC (rev 8292)
+++ code/branches/kicklib2/src/libraries/core/Core.cc 2011-04-22 01:38:10 UTC (rev 8293)
@@ -80,7 +80,7 @@
Core* Core::singletonPtr_s = 0;
SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file");
-#ifndef ORXONOX_PLATFORM_APPLE
+#if !defined(ORXONOX_PLATFORM_APPLE) && !defined(ORXONOX_USE_WINMAIN)
SetCommandLineSwitch(noIOConsole).information("Use this if you don't want to use the IOConsole (for instance for Lua debugging)");
#endif
@@ -157,7 +157,7 @@
ClassIdentifier<Core>::getIdentifier("Core")->initialiseObject(this, "Core", true);
this->setConfigValues();
-#ifndef ORXONOX_PLATFORM_APPLE
+#if !defined(ORXONOX_PLATFORM_APPLE) && !defined(ORXONOX_USE_WINMAIN)
// Create persistent IO console
if (CommandLineParser::getValue("noIOConsole").getBool())
{
More information about the Orxonox-commit
mailing list