File diff r14268:9b1e8255c24f → r14269:cb886fbeaf44
src/os/windows/crashlog_win.cpp
Show inline comments
 
@@ -18,6 +18,7 @@
 
#include "../../fileio_func.h"
 
#include "../../strings_func.h"
 
#include "../../gamelog.h"
 
#include "../../saveload/saveload.h"
 

	
 
#include <windows.h>
 
#include <signal.h>
 
@@ -378,6 +379,15 @@ static LONG WINAPI ExceptionHandler(EXCE
 
		ExitProcess(3);
 
	}
 

	
 
	if (SaveloadCrashWithMissingNewGRFs()) {
 
		static const TCHAR _saveload_crash[] =
 
			_T("A serious fault condition occured in the game. The game will shut down.\n")
 
			_T("As you loaded an savegame for which you do not have the required NewGRFs\n")
 
			_T("no crash information will be generated.\n");
 
		MessageBox(NULL, _saveload_crash, _T("Fatal Application Failure"), MB_ICONERROR);
 
		ExitProcess(3);
 
	}
 

	
 
	CrashLogWindows *log = new CrashLogWindows(ep);
 
	CrashLogWindows::current = log;
 
	log->FillCrashLog(log->crashlog, lastof(log->crashlog));