aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2015-07-10 14:13:18 +0300
committerFilippos Karapetis2015-07-10 14:13:18 +0300
commitfc1464155a7e48b05829401c7605c3f65bda0000 (patch)
tree111540a177a4afa0215f954876b14d924e960b3e
parent6546882b4f6de983a43d140eb4faf8171a12a1c1 (diff)
downloadscummvm-rg350-fc1464155a7e48b05829401c7605c3f65bda0000.tar.gz
scummvm-rg350-fc1464155a7e48b05829401c7605c3f65bda0000.tar.bz2
scummvm-rg350-fc1464155a7e48b05829401c7605c3f65bda0000.zip
SCI: Enable the save game menu option when dying in PQ2 - bug #6875
This uses the same hack as the one used to reset the menus in Jones. I've tested some more SCI games, and they don't disable menu entries when loading a game. Hopefully, Jones and PQ2 are the only ones
-rw-r--r--engines/sci/engine/kfile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index c56eb09482..0ed08fa5e4 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -933,6 +933,10 @@ reg_t kRestoreGame(EngineState *s, int argc, reg_t *argv) {
g_sci->_gfxMenu->kernelSetAttribute(1025 >> 8, 1025 & 0xFF, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG); // Status -> Statistics
g_sci->_gfxMenu->kernelSetAttribute(1026 >> 8, 1026 & 0xFF, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG); // Status -> Goals
break;
+ case GID_PQ2:
+ // HACK: Same as above - enable the save game menu option when dying in PQ2 (bug #6875)
+ g_sci->_gfxMenu->kernelSetAttribute(2, 1, SCI_MENU_ATTRIBUTE_ENABLED, TRUE_REG); // Game -> Save Game
+ break;
default:
break;
}