mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-05-03 07:08:01 +03:00
show message box in S_ExitSystem
This commit is contained in:
parent
a20092577d
commit
61ab7cd60a
2 changed files with 2 additions and 3 deletions
|
@ -111,7 +111,7 @@ void S_ExitSystem(const char *message)
|
||||||
free(GameMemoryPointer);
|
free(GameMemoryPointer);
|
||||||
}
|
}
|
||||||
ShutdownHardware();
|
ShutdownHardware();
|
||||||
TerminateGame(1);
|
ShowFatalError(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_game_malloc()
|
void init_game_malloc()
|
||||||
|
|
|
@ -76,8 +76,7 @@ void ShowFatalError(const char *message)
|
||||||
}
|
}
|
||||||
MessageBoxA(
|
MessageBoxA(
|
||||||
0, message, "Tomb Raider Error", MB_SETFOREGROUND | MB_ICONEXCLAMATION);
|
0, message, "Tomb Raider Error", MB_SETFOREGROUND | MB_ICONEXCLAMATION);
|
||||||
WinGameFinish();
|
TerminateGame(1);
|
||||||
exit(1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static LRESULT WINAPI KeyboardHook(int code, WPARAM wParam, LPARAM lParam)
|
static LRESULT WINAPI KeyboardHook(int code, WPARAM wParam, LPARAM lParam)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue