Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4033 in orxonox.OLD for orxonox


Ignore:
Timestamp:
May 4, 2005, 2:05:53 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: better support, but it only starts gui, if orxonox crashed, and did not end normaly

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

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

    r4032 r4033  
    4747Orxonox::Orxonox ()
    4848{
    49   ResourceManager::touchFile("~/.orxonox/orxonox.lock");
    50 
    5149  pause = false;
    5250}
     
    6462  delete ResourceManager::getInstance(); // deletes the Resource Manager
    6563  delete TextEngine::getInstance();
    66 
    67   ResourceManager::deleteFile("~/.orxonox/orxonox.lock");
    6864}
    6965
     
    343339 
    344340  PRINT(0)(">>> Starting Orxonox <<<\n");
     341
     342  ResourceManager::touchFile("~/.orxonox/orxonox.lock");
     343
    345344  Orxonox *orx = Orxonox::getInstance();
    346345 
     
    354353 
    355354  delete orx;
     355  ResourceManager::deleteFile("~/.orxonox/orxonox.lock");
    356356 
    357357}
  • orxonox/trunk/src/util/resource_manager.cc

    r4032 r4033  
    575575      return false;
    576576    }
     577  fclose(stream);
    577578   
    578579  delete tmpName;
Note: See TracChangeset for help on using the changeset viewer.