mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[server] Implement exception functions
This commit is contained in:
@@ -5,6 +5,11 @@ CConsole *pConsole = NULL;
|
||||
|
||||
FILE *pLogFile;
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
extern LONG WINAPI exc_handler(_EXCEPTION_POINTERS* exc_inf);
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void LoadLogFile()
|
||||
@@ -65,6 +70,11 @@ int main (int argc, char** argv)
|
||||
// Create the Console
|
||||
pConsole = new CConsole();
|
||||
|
||||
#ifdef WIN32
|
||||
// Setup the exception handler on windows
|
||||
SetUnhandledExceptionFilter(exc_handler);
|
||||
#endif
|
||||
|
||||
// TODO: main
|
||||
|
||||
fclose(pLogFile);
|
||||
|
||||
Reference in New Issue
Block a user