Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Sep 19, 2005, 10:00:45 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: default value can now be supplied as aditional arg of the SHELL_COMMAND-macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r5183 r5207  
    5858
    5959using namespace std;
     60
     61SHELL_COMMAND(restart, Orxonox, restart);
    6062
    6163/**
     
    121123Orxonox* Orxonox::singletonRef = NULL;
    122124
     125// DANGEROUS
     126void Orxonox::restart()
     127{
     128//   int argc = this->argc;
     129//   char** argv = this->argv;
     130//
     131//   Orxonox *orx = Orxonox::getInstance();
     132//
     133//   delete orx;
     134//
     135//   orx = Orxonox::getInstance();
     136//
     137//   if((*orx).init(argc, argv) == -1)
     138//   {
     139//     PRINTF(1)("! Orxonox initialization failed\n");
     140//     return;
     141//   }
     142//
     143//   printf("finished inizialisation\n");
     144//   orx->start();
     145}
     146
    123147/**
    124148 *  this finds the config file
Note: See TracChangeset for help on using the changeset viewer.