support g_bAutoRestart
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user