Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 29, 2006, 2:56:52 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the Signal-Handler-Branche back to the TRUNK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r7427 r7440  
    3434#include "parser/ini_parser/ini_parser.h"
    3535#include "util/loading/game_loader.h"
     36#include "util/signal_handler.h"
    3637
    3738//ENGINES
     
    8485REGISTER_ARG_ARG(  _, music_volume, "audio", "Music-Volume", "Sets music volume", "vol" );
    8586REGISTER_ARG_ARG(  _, effects_volume, "audio", "Effects-Volume", "Sets effects volume", "vol" );
     87
     88#ifndef __WIN32__
     89REGISTER_ARG_FLAG( _, start_gdb_on_signal, "misc", "start-gdb", "Start gdb on signal", "1");
     90REGISTER_ARG_FLAG( _, write_bt_to_file, "misc", "bt-to-file", "Write backtrace to file", "1");
     91#endif
    8692
    8793/**
     
    429435  }
    430436
     437  if ( Preferences::getInstance()->getString("misc", "start-gdb", "0") == "1" )
     438  {
     439    SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_IN_FOREGROUND );
     440  }
     441  else if ( Preferences::getInstance()->getString("misc", "bt-to-file", "1") == "1" )
     442  {      SignalHandler::getInstance()->doCatch( argv[0], GDB_RUN_WRITE_TO_FILE );
     443   
     444  }
     445 
    431446  if( Preferences::getInstance()->getString("game", "showGui", "") == "1" )
    432447    showGui = true;
Note: See TracChangeset for help on using the changeset viewer.