mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 10:49:53 +02:00
reenable sighandlers for winderp
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
#include "graphics/Graphics.h"
|
#include "graphics/Graphics.h"
|
||||||
#if defined(LIN)
|
#if defined(LIN)
|
||||||
#include "icon.h"
|
#include "icon.h"
|
||||||
#include <signal.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
#include <signal.h>
|
||||||
|
|
||||||
#ifndef WIN
|
#ifndef WIN
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@@ -667,7 +667,6 @@ void BlueScreen(char * detailMessage){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WIN
|
|
||||||
void SigHandler(int signal)
|
void SigHandler(int signal)
|
||||||
{
|
{
|
||||||
switch(signal){
|
switch(signal){
|
||||||
@@ -685,7 +684,6 @@ void SigHandler(int signal)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
int main(int argc, char * argv[])
|
int main(int argc, char * argv[])
|
||||||
{
|
{
|
||||||
@@ -783,13 +781,11 @@ int main(int argc, char * argv[])
|
|||||||
engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true));
|
engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true));
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
#ifndef WIN
|
|
||||||
//Get ready to catch any dodgy errors
|
//Get ready to catch any dodgy errors
|
||||||
signal(SIGSEGV, SigHandler);
|
signal(SIGSEGV, SigHandler);
|
||||||
signal(SIGFPE, SigHandler);
|
signal(SIGFPE, SigHandler);
|
||||||
signal(SIGILL, SigHandler);
|
signal(SIGILL, SigHandler);
|
||||||
signal(SIGABRT, SigHandler);
|
signal(SIGABRT, SigHandler);
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
GameController * gameController = NULL;
|
GameController * gameController = NULL;
|
||||||
|
Reference in New Issue
Block a user