summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/win32.c b/win32.c
index 6f2a746b3..a2ef16322 100644
--- a/win32.c
+++ b/win32.c
@@ -181,7 +181,7 @@ static void ClientSizeChanged(int w, int h)
}
}
-void DoExitSave(void);
+extern void DoExitSave(void);
static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
@@ -1194,8 +1194,11 @@ static const char _save_succeeded[] =
"Be aware that critical parts of the internal game state may have become "
"corrupted. The saved game is not guaranteed to work.";
-bool EmergencySave();
-
+static bool EmergencySave(void)
+{
+ SaveOrLoad("crash.sav", SL_SAVE);
+ return true;
+}
typedef struct {
HINTERNET (WINAPI *InternetOpenA)(LPCSTR,DWORD, LPCSTR, LPCSTR, DWORD);