Codechange: Place gamelog into its own class, along with internal data.
Data is now stored in vectors to avoid manual memory management and passing lengths around.
This commit is contained in:
@@ -227,7 +227,7 @@ void CDECL HandleCrash(int signum)
|
||||
signal(*i, SIG_DFL);
|
||||
}
|
||||
|
||||
if (GamelogTestEmergency()) {
|
||||
if (_gamelog.TestEmergency()) {
|
||||
ShowMacDialog("A serious fault condition occurred in the game. The game will shut down.",
|
||||
"As you loaded an emergency savegame no crash information will be generated.\n",
|
||||
"Quit");
|
||||
|
@@ -155,7 +155,7 @@ static void CDECL HandleCrash(int signum)
|
||||
signal(*i, SIG_DFL);
|
||||
}
|
||||
|
||||
if (GamelogTestEmergency()) {
|
||||
if (_gamelog.TestEmergency()) {
|
||||
printf("A serious fault condition occurred in the game. The game will shut down.\n");
|
||||
printf("As you loaded an emergency savegame no crash information will be generated.\n");
|
||||
abort();
|
||||
|
@@ -540,7 +540,7 @@ static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
|
||||
ExitProcess(2);
|
||||
}
|
||||
|
||||
if (GamelogTestEmergency()) {
|
||||
if (_gamelog.TestEmergency()) {
|
||||
static const wchar_t _emergency_crash[] =
|
||||
L"A serious fault condition occurred in the game. The game will shut down.\n"
|
||||
L"As you loaded an emergency savegame no crash information will be generated.\n";
|
||||
|
Reference in New Issue
Block a user