add ArchHooks_Win32::RestartProgram

This commit is contained in:
Glenn Maynard
2003-10-17 06:32:37 +00:00
parent 7ecbd11306
commit 42a9b7e155
3 changed files with 9 additions and 3 deletions
+3
View File
@@ -40,6 +40,9 @@ public:
virtual ~ArchHooks() { }
/* This is called once each time through the game loop */
virtual void Update(float delta) { }
/* Re-exec the game. If this is implemented, it doesn't return. */
virtual void RestartProgram() { }
};
#endif
@@ -149,9 +149,6 @@ static BOOL CALLBACK ErrorWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
void ArchHooks_Win32::MessageBoxError( CString error )
{
if( g_bAutoRestart )
Win32RestartProgram();
g_sErrorString = error;
// throw up a pretty error dialog
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.
@@ -10,6 +10,7 @@ public:
void MessageBoxOK( CString sMessage, CString ID );
void MessageBoxError( CString error );
MessageBoxResult MessageBoxAbortRetryIgnore( CString sMessage, CString ID );
void RestartProgram();
};
#undef ARCH_HOOKS