summaryrefslogtreecommitdiff
path: root/saveload.c
diff options
context:
space:
mode:
Diffstat (limited to 'saveload.c')
-rw-r--r--saveload.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/saveload.c b/saveload.c
index dda3eefc1..ffb6fd280 100644
--- a/saveload.c
+++ b/saveload.c
@@ -1146,6 +1146,14 @@ bool EmergencySave()
return true;
}
+void DoExitSave()
+{
+ char buf[200];
+ sprintf(buf, "%s%sexit.sav", _path.autosave_dir, PATHSEP);
+ debug(buf);
+ SaveOrLoad(buf, SL_SAVE);
+}
+
// not used right now, but could be used if extensions of savegames are garbled
/*int GetSavegameType(char *file)
{