[Scummvm-git-logs] scummvm master -> b53d5fea2635a3d41d034beda65a99e0ffaed626
sluicebox
noreply at scummvm.org
Tue Aug 6 01:01:15 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b53d5fea26 SCI32: Fix GK1 Italian patch being applied to Mac
Commit: b53d5fea2635a3d41d034beda65a99e0ffaed626
https://github.com/scummvm/scummvm/commit/b53d5fea2635a3d41d034beda65a99e0ffaed626
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2024-08-05T17:59:33-07:00
Commit Message:
SCI32: Fix GK1 Italian patch being applied to Mac
The compatibility script patch for the GK1 Italian fan patch was being
accidentally applied to GK1 Mac as well, causing dialogs to crash.
Changed paths:
engines/sci/engine/script_patches.cpp
diff --git a/engines/sci/engine/script_patches.cpp b/engines/sci/engine/script_patches.cpp
index 40381cf7269..2aa46a9dd3e 100644
--- a/engines/sci/engine/script_patches.cpp
+++ b/engines/sci/engine/script_patches.cpp
@@ -4388,7 +4388,9 @@ static const uint16 gk1EndGameFontPatch[] = {
// to kDisposeTextBitmap. By patching just the callk instructions, the Destroy
// subop (1) on the stack becomes the new parameter count. The old parameter
// count (2) remains on the stack until the next ret instruction. This allows
-// one patch to work on all calls.
+// one patch to work on all calls. This patch is hard-coded to little endian
+// bytecode so that it it is not applied to the Macintosh version, as that
+// version does use a SCI2.1 interpreter.
//
// Applies to: Italian fan translation, PC CD version
// Responsible methods: DEdit:hilite, DText:dispose, DText:draw, DSelector:dispose,
@@ -4396,12 +4398,12 @@ static const uint16 gk1EndGameFontPatch[] = {
// TellerButton:hilite, TopicButton:hilite
static const uint16 gk1ItalianTranslationSignature[] = {
SIG_MAGICDWORD,
- 0x43, 0x91, SIG_UINT16(0x0004), // callk 91 0004 [ SCI2: invalid, SCI2.1: kBitmap ]
+ 0x43, 0x91, 0x04, 0x00, // callk 91 0004 [ SCI2: invalid, SCI2.1: kBitmap ]
SIG_END
};
static const uint16 gk1ItalianTranslationPatch[] = {
- 0x43, 0x2e, PATCH_UINT16(0x0002), // callk 2e 0002 [ kDisposeTextBitmap ]
+ 0x43, 0x2e, 0x02, 0x00, // callk 2e 0002 [ kDisposeTextBitmap ]
PATCH_END
};
More information about the Scummvm-git-logs
mailing list