aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/kfile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 732d61f809..e386b1315d 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -743,6 +743,12 @@ reg_t kFileIOExists(EngineState *s, int argc, reg_t *argv) {
if (isSaveCatalogue(name)) {
return saveCatalogueExists(name) ? TRUE_REG : NULL_REG;
}
+
+ // LSL7 checks to see if the autosave save exists when deciding whether to
+ // go to the main menu or not on startup
+ if (g_sci->getGameId() == GID_LSL7 && name == "autosvsg.000") {
+ return g_sci->getSaveFileManager()->listSavefiles(g_sci->getSavegameName(0)).empty() ? NULL_REG : TRUE_REG;
+ }
#endif
// TODO: It may apparently be worth caching the existence of