aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorVhati2019-01-18 21:08:38 -0500
committerFilippos Karapetis2019-02-03 10:49:48 +0200
commit6a6477f4c65a49ce2f32916ea69350045e60707a (patch)
tree07d3db5617c9d5fc9c4a5436ea6427d01942761a /engines/sci
parente289646b6f690b991ab301fe8f58c417b57598ce (diff)
downloadscummvm-rg350-6a6477f4c65a49ce2f32916ea69350045e60707a.tar.gz
scummvm-rg350-6a6477f4c65a49ce2f32916ea69350045e60707a.tar.bz2
scummvm-rg350-6a6477f4c65a49ce2f32916ea69350045e60707a.zip
SCI: Cleanup fangame patches
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/script_patches.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/engines/sci/engine/script_patches.cpp b/engines/sci/engine/script_patches.cpp
index fadd41ac94..3599f1d06b 100644
--- a/engines/sci/engine/script_patches.cpp
+++ b/engines/sci/engine/script_patches.cpp
@@ -683,14 +683,13 @@ static const SciScriptPatcherEntry ecoquest2Signatures[] = {
// Fan-made games
// Attention: Try to make script patches as specific as possible
-// CascadeQuest::autosave in script 994 is called various times to auto-save the game.
-// The script use a fixed slot "999" for this purpose. This doesn't work in ScummVM, because we do not let
-// scripts save directly into specific slots, but instead use virtual slots / detect scripts wanting to
-// create a new slot.
-//
-// For this game we patch the code to use slot 99 instead. kSaveGame also checks for Cascade Quest,
-// will then check, if slot 99 is asked for and will then use the actual slot 0, which is the official
-// ScummVM auto-save slot.
+// CascadeQuest::autosave in script 994 is called various times to auto-save.
+// It uses a fixed slot (999) for this purpose. This doesn't work in ScummVM,
+// because we do not let scripts save directly into specific slots, but
+// instead use virtual slots / detect scripts wanting to create a new slot.
+// We patch the code to use slot 99 instead. kSaveGame also checks for Cascade
+// Quest, and if slot 99 is asked for, it will then use the actual slot 0,
+// which is the official ScummVM auto-save slot.
//
// Responsible method: CascadeQuest::autosave
// Fixes bug: #7007
@@ -698,7 +697,7 @@ static const uint16 fanmadeSignatureCascadeQuestFixAutoSaving[] = {
SIG_MAGICDWORD,
0x38, SIG_UINT16(0x03e7), // pushi 3E7 (999d) -> save game slot 999
0x74, SIG_UINT16(0x06f8), // lofss "AutoSave"
- 0x89, 0x1e, // lsg global[1E]
+ 0x89, 0x1e, // lsg global[1e]
0x43, 0x2d, 0x08, // callk SaveGame
SIG_END
};
@@ -716,7 +715,7 @@ static const uint16 fanmadePatchCascadeQuestFixAutoSaving[] = {
static const uint16 fanmadeSignatureDemoQuestInfiniteLoop[] = {
0x38, SIG_UINT16(0x004c), // pushi 004c
0x39, 0x00, // pushi 00
- 0x87, 0x01, // lap 01
+ 0x87, 0x01, // lap param[1]
0x4b, 0x04, // send 04
SIG_MAGICDWORD,
0x18, // not