Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4054 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
May 5, 2005, 1:32:47 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the guiMerge-branche back into the trunk
merged with command:
svn merge -r 4043:HEAD guiMerge/ ../trunk/
no conflicts, only updates and moves :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4042 r4054  
    2222   main-programmer: Patrick Boenzli
    2323   co-programmer: Christian Meyer
    24    co-programmer: Benjamin Grauer: injected ResourceManager/GraphicsEngine
     24   co-programmer: Benjamin Grauer: injected ResourceManager/GraphicsEngine/GUI
    2525*/
    2626
    2727#include "orxonox.h"
     28
     29#include "gui.h"
    2830
    2931#include "world.h"
     
    4850{
    4951  pause = false;
     52  this->world = NULL;
     53  this->resources = NULL;
     54  this->localinput = NULL;
    5055}
    5156
     
    5560Orxonox::~Orxonox ()
    5661{
     62  int i =0;
    5763  Orxonox::singletonRef = NULL;
    5864  if( world != NULL) delete world;
    59   if( localinput != NULL) delete world;
     65  if( localinput != NULL) delete localinput;
    6066  if( resources != NULL) delete resources;
    6167  delete GraphicsEngine::getInstance(); // deleting the Graphics
     
    172178    {
    173179      PRINTF(1)("Data Could not be located\n");
    174       exit( -1);
     180      exit(-1);
    175181    }
    176182
     
    337343      if (ResourceManager::isFile("~/.orxonox/orxonox.lock"))
    338344        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;
    344354    }
    345355 
Note: See TracChangeset for help on using the changeset viewer.