- Timestamp:
- Oct 24, 2008, 12:43:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/gamestates/GSRoot.cc
r1891 r2003 61 61 namespace orxonox 62 62 { 63 SetCommandLineArgument(dataPath, ""). setInformation("PATH");64 SetCommandLineArgument(limitToCPU, 1). setInformation("0: off | #cpu");63 SetCommandLineArgument(dataPath, "").information("PATH"); 64 SetCommandLineArgument(limitToCPU, 1).information("0: off | #cpu"); 65 65 66 66 GSRoot::GSRoot() … … 91 91 this->settings_ = new Settings(); 92 92 93 std::string dataPath; 94 CommandLine::getValue("dataPath", &dataPath); 93 std::string dataPath = CommandLine::getValue("dataPath"); 95 94 if (dataPath != "") 96 95 { … … 111 110 // do this after ogre has initialised. Somehow Ogre changes the settings again (not through 112 111 // the timer though). 113 int limitToCPU; 114 CommandLine::getValue("limitToCPU", &limitToCPU); 112 int limitToCPU = CommandLine::getValue("limitToCPU"); 115 113 if (limitToCPU > 0) 116 114 setThreadAffinity((unsigned int)(limitToCPU - 1));
Note: See TracChangeset
for help on using the changeset viewer.