support g_bAutoRestart

This commit is contained in:
Glenn Maynard
2003-10-16 09:00:20 +00:00
parent c3bc5440d5
commit eb0daaf7e2
+5
View File
@@ -31,6 +31,8 @@
#include "RageLog.h" /* for RageLog::GetAdditionalLog and Flush */
#include "RageThreads.h" /* for GetCheckpointLogs */
#include "PrefsManager.h" /* for g_bAutoRestart */
#include "RestartProgram.h"
#include "GotoURL.h"
@@ -209,6 +211,9 @@ long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc)
* dump, save it now. */
DoSave(pExc);
if( g_bAutoRestart )
Win32RestartProgram();
/* Little trick to get an HINSTANCE of ourself without having access to the hwnd ... */
{
TCHAR szFullAppPath[MAX_PATH];