- Timestamp:
- Apr 29, 2006, 2:56:52 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_socket.cc
r6994 r7440 120 120 void NetworkSocket::connectToServer(IPaddress ip) 121 121 { 122 //HACK this will cause segfault 123 #warning remove this 124 int * a; 125 *a = 99; 122 126 //check if not already connected or listening 123 127 if (tcpSocket) -
trunk/src/orxonox.cc
r7427 r7440 34 34 #include "parser/ini_parser/ini_parser.h" 35 35 #include "util/loading/game_loader.h" 36 #include "util/signal_handler.h" 36 37 37 38 //ENGINES … … 84 85 REGISTER_ARG_ARG( _, music_volume, "audio", "Music-Volume", "Sets music volume", "vol" ); 85 86 REGISTER_ARG_ARG( _, effects_volume, "audio", "Effects-Volume", "Sets effects volume", "vol" ); 87 88 #ifndef __WIN32__ 89 REGISTER_ARG_FLAG( _, start_gdb_on_signal, "misc", "start-gdb", "Start gdb on signal", "1"); 90 REGISTER_ARG_FLAG( _, write_bt_to_file, "misc", "bt-to-file", "Write backtrace to file", "1"); 91 #endif 86 92 87 93 /** … … 429 435 } 430 436 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 431 446 if( Preferences::getInstance()->getString("game", "showGui", "") == "1" ) 432 447 showGui = true; -
trunk/src/util/Makefile.am
r7391 r7440 12 12 multiplayer_team_deathmatch.cc \ 13 13 singleplayer_shootemup.cc \ 14 signal_handler.cc \ 14 15 \ 15 16 animation/animation3d.cc \ … … 30 31 multiplayer_team_deathmatch.h \ 31 32 singleplayer_shootemup.h \ 33 signal_handler.h \ 32 34 \ 33 35 animation/animation3d.h \ -
trunk/src/util/signal_handler.h
r7439 r7440 57 57 class SignalHandler 58 58 { 59 public: 59 60 inline static SignalHandler* getInstance() {}; 60 61 void doCatch( std::string appName, GdbRunType type = GDB_RUN_WRITE_TO_FILE ) {};
Note: See TracChangeset
for help on using the changeset viewer.