Changeset 1792 for code/trunk/src/orxonox/gamestates/GSRoot.cc
- Timestamp:
- Sep 16, 2008, 8:45:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSRoot.cc
r1764 r1792 33 33 #include <OgreRoot.h> 34 34 35 //#include "util/SubString.h"36 35 #include "util/Exception.h" 37 36 #include "util/Debug.h" … … 42 41 #include "core/ConsoleCommand.h" 43 42 #include "core/CommandLine.h" 43 #include "core/Shell.h" 44 44 #include "core/TclBind.h" 45 45 #include "core/TclThreadManager.h" … … 73 73 , ogreLogger_(0) 74 74 , graphicsEngine_(0) 75 , tclBind_(0) 76 , tclThreadManager_(0) 77 , shell_(0) 75 78 { 76 79 RegisterRootObject(GSRoot); … … 120 123 121 124 // initialise TCL 122 TclBind::getInstance().setDataPath(Settings::getDataPath()); 123 TclThreadManager::getInstance(); 125 this->tclBind_ = new TclBind(Settings::getDataPath()); 126 this->tclThreadManager_ = new TclThreadManager(tclBind_->getTclInterpreter()); 127 128 // create a shell 129 this->shell_ = new Shell(); 124 130 125 131 setupOgre(); … … 149 155 void GSRoot::leave() 150 156 { 157 // TODO: remove and destroy console commands 158 151 159 delete graphicsEngine_; 152 160 … … 160 168 #endif 161 169 170 delete this->shell_; 171 delete this->tclThreadManager_; 172 delete this->tclBind_; 173 162 174 delete settings_; 163 175 164 // TODO: remove and destroy console commands165 176 } 166 177
Note: See TracChangeset
for help on using the changeset viewer.