[Orxonox-commit 2921] r7624 - code/branches/ois_update/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat Nov 6 17:26:56 CET 2010
Author: rgrieder
Date: 2010-11-06 17:26:55 +0100 (Sat, 06 Nov 2010)
New Revision: 7624
Modified:
code/branches/ois_update/src/libraries/core/Core.cc
Log:
IOConsole does not seem to work properly with the Unix console on Mac OS X.
And the XCode console does not support the ANSI characters at all (how to check for XCode debugger at runtime?).
Modified: code/branches/ois_update/src/libraries/core/Core.cc
===================================================================
--- code/branches/ois_update/src/libraries/core/Core.cc 2010-11-06 16:09:15 UTC (rev 7623)
+++ code/branches/ois_update/src/libraries/core/Core.cc 2010-11-06 16:26:55 UTC (rev 7624)
@@ -80,7 +80,9 @@
Core* Core::singletonPtr_s = 0;
SetCommandLineArgument(settingsFile, "orxonox.ini").information("THE configuration file");
+#ifndef ORXONOX_PLATFORM_APPLE
SetCommandLineSwitch(noIOConsole).information("Use this if you don't want to use the IOConsole (for instance for Lua debugging)");
+#endif
#ifdef ORXONOX_PLATFORM_WINDOWS
SetCommandLineArgument(limitToCPU, 1).information("Limits the program to one CPU/core (1, 2, 3, etc.). Default is the first core (faster than off)");
@@ -153,13 +155,15 @@
ClassIdentifier<Core>::getIdentifier("Core")->initialiseObject(this, "Core", true);
this->setConfigValues();
- // create persistent io console
+#ifndef ORXONOX_PLATFORM_APPLE
+ // Create persistent IO console
if (CommandLineParser::getValue("noIOConsole").getBool())
{
ModifyConfigValue(bStartIOConsole_, tset, false);
}
if (this->bStartIOConsole_)
this->ioConsole_.reset(new IOConsole());
+#endif
// creates the class hierarchy for all classes with factories
Identifier::createClassHierarchy();
More information about the Orxonox-commit
mailing list