- Timestamp:
- Feb 20, 2009, 5:32:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3/src/orxonox/gamestates/GSRoot.cc
r2664 r2685 44 44 #include "tools/Timer.h" 45 45 #include "objects/Tickable.h" 46 #include "Settings.h"47 46 48 47 #ifdef ORXONOX_PLATFORM_WINDOWS 49 # ifndef WIN32_LEAN_AND_MEAN 50 # define WIN32_LEAN_AND_MEAN 51 # endif 52 # include "windows.h" 53 54 //Get around Windows hackery 55 # ifdef max 56 # undef max 57 # endif 58 # ifdef min 59 # undef min 60 # endif 48 # include <winbase.h> 61 49 #endif 62 50 63 51 namespace orxonox 64 52 { 65 SetCommandLineArgument(dataPath, "").information("PATH");66 53 SetCommandLineArgument(limitToCPU, 1).information("0: off | #cpu"); 67 54 … … 71 58 , bPaused_(false) 72 59 , timeFactorPauseBackup_(1.0f) 73 , settings_(0)74 60 , tclBind_(0) 75 61 , tclThreadManager_(0) … … 113 99 this->luaBind_ = new LuaBind(); 114 100 115 // instantiate Settings class116 this->settings_ = new Settings();117 118 std::string dataPath = CommandLine::getValue("dataPath");119 if (dataPath != "")120 {121 if (*dataPath.end() != '/' && *dataPath.end() != '\\')122 Settings::tsetDataPath(dataPath + "/");123 else124 Settings::tsetDataPath(dataPath);125 }126 127 101 // initialise TCL 128 this->tclBind_ = new TclBind( Settings::getDataPath());102 this->tclBind_ = new TclBind(Core::getMediaPath()); 129 103 this->tclThreadManager_ = new TclThreadManager(tclBind_->getTclInterpreter()); 130 104 … … 182 156 delete this->tclBind_; 183 157 184 delete this->settings_;185 158 delete this->luaBind_; 186 159
Note: See TracChangeset
for help on using the changeset viewer.