add ArchHooks_Win32::RestartProgram
This commit is contained in:
@@ -40,6 +40,9 @@ public:
|
|||||||
virtual ~ArchHooks() { }
|
virtual ~ArchHooks() { }
|
||||||
/* This is called once each time through the game loop */
|
/* This is called once each time through the game loop */
|
||||||
virtual void Update(float delta) { }
|
virtual void Update(float delta) { }
|
||||||
|
|
||||||
|
/* Re-exec the game. If this is implemented, it doesn't return. */
|
||||||
|
virtual void RestartProgram() { }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -149,9 +149,6 @@ static BOOL CALLBACK ErrorWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
|
|||||||
|
|
||||||
void ArchHooks_Win32::MessageBoxError( CString error )
|
void ArchHooks_Win32::MessageBoxError( CString error )
|
||||||
{
|
{
|
||||||
if( g_bAutoRestart )
|
|
||||||
Win32RestartProgram();
|
|
||||||
|
|
||||||
g_sErrorString = error;
|
g_sErrorString = error;
|
||||||
// throw up a pretty error dialog
|
// throw up a pretty error dialog
|
||||||
AppInstance handle;
|
AppInstance handle;
|
||||||
@@ -170,6 +167,11 @@ ArchHooks::MessageBoxResult ArchHooks_Win32::MessageBoxAbortRetryIgnore( CString
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ArchHooks_Win32::RestartProgram()
|
||||||
|
{
|
||||||
|
Win32RestartProgram();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2002-2003 by the person(s) listed below. All rights reserved.
|
* Copyright (c) 2002-2003 by the person(s) listed below. All rights reserved.
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ public:
|
|||||||
void MessageBoxOK( CString sMessage, CString ID );
|
void MessageBoxOK( CString sMessage, CString ID );
|
||||||
void MessageBoxError( CString error );
|
void MessageBoxError( CString error );
|
||||||
MessageBoxResult MessageBoxAbortRetryIgnore( CString sMessage, CString ID );
|
MessageBoxResult MessageBoxAbortRetryIgnore( CString sMessage, CString ID );
|
||||||
|
void RestartProgram();
|
||||||
};
|
};
|
||||||
|
|
||||||
#undef ARCH_HOOKS
|
#undef ARCH_HOOKS
|
||||||
|
|||||||
Reference in New Issue
Block a user