Changeset 4054 in orxonox.OLD for orxonox/trunk/src/orxonox.cc
- Timestamp:
- May 5, 2005, 1:32:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r4042 r4054 22 22 main-programmer: Patrick Boenzli 23 23 co-programmer: Christian Meyer 24 co-programmer: Benjamin Grauer: injected ResourceManager/GraphicsEngine 24 co-programmer: Benjamin Grauer: injected ResourceManager/GraphicsEngine/GUI 25 25 */ 26 26 27 27 #include "orxonox.h" 28 29 #include "gui.h" 28 30 29 31 #include "world.h" … … 48 50 { 49 51 pause = false; 52 this->world = NULL; 53 this->resources = NULL; 54 this->localinput = NULL; 50 55 } 51 56 … … 55 60 Orxonox::~Orxonox () 56 61 { 62 int i =0; 57 63 Orxonox::singletonRef = NULL; 58 64 if( world != NULL) delete world; 59 if( localinput != NULL) delete world;65 if( localinput != NULL) delete localinput; 60 66 if( resources != NULL) delete resources; 61 67 delete GraphicsEngine::getInstance(); // deleting the Graphics … … 172 178 { 173 179 PRINTF(1)("Data Could not be located\n"); 174 exit( 180 exit(-1); 175 181 } 176 182 … … 337 343 if (ResourceManager::isFile("~/.orxonox/orxonox.lock")) 338 344 ResourceManager::deleteFile("~/.orxonox/orxonox.lock"); 339 char* guiExec = new char[strlen(argv[0])+20]; 340 sprintf(guiExec,"%sGui --gui", argv[0]); 341 system(guiExec); 342 delete guiExec; 343 return 0; 345 // char* guiExec = new char[strlen(argv[0])+20]; 346 // sprintf(guiExec,"%sGui --gui", argv[0]); 347 OrxonoxGui* gui = new OrxonoxGui(argc, argv); 348 if (! gui->startOrxonox) 349 return 0; 350 351 delete gui; 352 // delete guiExec; 353 // return 0; 344 354 } 345 355
Note: See TracChangeset
for help on using the changeset viewer.