aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/selector.cpp
diff options
context:
space:
mode:
authorColin Snover2017-09-14 20:42:42 -0500
committerColin Snover2017-09-14 20:45:02 -0500
commit029eeeb803eaef861e74765f69e2fabddf0ec7a7 (patch)
tree25f5e175f62be21c1ee407bdd8f054e0fd460729 /engines/sci/engine/selector.cpp
parent88420970b78cd8f740c3251d7d6c028c06ef6fc1 (diff)
downloadscummvm-rg350-029eeeb803eaef861e74765f69e2fabddf0ec7a7.tar.gz
scummvm-rg350-029eeeb803eaef861e74765f69e2fabddf0ec7a7.tar.bz2
scummvm-rg350-029eeeb803eaef861e74765f69e2fabddf0ec7a7.zip
SCI32: Fix Phant2 "auto-save"
The game has a feature where it will automatically create a save game when you quit the game through the in-game control panel (or when you die, for some reason). Unfortunately, due to bad programming, this automatic save would just overwrite whatever was in save slot 1 (slot 0 in the original interpreter). Find this attempt to auto-save the game and redirect it to the auto-save slot. This might not be totally correct, but it is at least better than destroying a save game. Fixes Trac#10201.
Diffstat (limited to 'engines/sci/engine/selector.cpp')
-rw-r--r--engines/sci/engine/selector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/engine/selector.cpp b/engines/sci/engine/selector.cpp
index 971802affb..d310b0fafd 100644
--- a/engines/sci/engine/selector.cpp
+++ b/engines/sci/engine/selector.cpp
@@ -226,6 +226,7 @@ void Kernel::mapSelectors() {
FIND_SELECTOR(scratch);
FIND_SELECTOR(num);
FIND_SELECTOR(reallyRestore);
+ FIND_SELECTOR(bookMark);
#endif
}