diff options
author | Colin Snover | 2017-02-10 17:10:49 -0600 |
---|---|---|
committer | Colin Snover | 2017-04-23 13:07:25 -0500 |
commit | e06d4a71fb34ce445297ac4df6fa23ac397c69be (patch) | |
tree | 79cf8cf94ed3126633d7765fa6aacc641a0009b0 /engines | |
parent | 59488131692157b607ec15df726418ac49fbbfca (diff) | |
download | scummvm-rg350-e06d4a71fb34ce445297ac4df6fa23ac397c69be.tar.gz scummvm-rg350-e06d4a71fb34ce445297ac4df6fa23ac397c69be.tar.bz2 scummvm-rg350-e06d4a71fb34ce445297ac4df6fa23ac397c69be.zip |
SCI32: Fix missing main menu in LSL7
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 6 |
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 |