@@ -10,12 +10,13 @@
/** @file crashlog_osx.cpp OS X crash log handler */
#include "../../stdafx.h"
#include "../../crashlog.h"
#include "../../string_func.h"
#include "../../gamelog.h"
#include "../../saveload/saveload.h"
#include "macos.h"
#include <errno.h>
#include <signal.h>
#include <mach-o/arch.h>
#include <dlfcn.h>
@@ -227,12 +228,19 @@ void CDECL HandleCrash(int signum)
ShowMacDialog("A serious fault condition occured in the game. The game will shut down.",
"As you loaded an emergency savegame no crash information will be generated.\n",
"Quit");
abort();
}
if (SaveloadCrashWithMissingNewGRFs()) {
"As you loaded an savegame for which you do not have the required NewGRFs no crash information will be generated.\n",
CrashLogOSX log(signum);
log.MakeCrashLog();
log.DisplayCrashDialog();
CrashLog::AfterCrashLogCleanup();