[Scummvm-git-logs] scummvm master -> 0d62e946497ec9fc432750734e94a7333db0963c

sluicebox noreply at scummvm.org
Fri Oct 24 23:41:51 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
0d62e94649 SCI: Fix ResourcePatcher regression


Commit: 0d62e946497ec9fc432750734e94a7333db0963c
    https://github.com/scummvm/scummvm/commit/0d62e946497ec9fc432750734e94a7333db0963c
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-10-24T16:40:22-07:00

Commit Message:
SCI: Fix ResourcePatcher regression

Fixes LB2 CD museum crashes

A recent change to ResourcePatcher reverted commits without updating
code from more recent commits: d15dc1828828377aef15e1b4e58aeae275454b55

Changed paths:
    engines/sci/resource/resource_patcher.cpp


diff --git a/engines/sci/resource/resource_patcher.cpp b/engines/sci/resource/resource_patcher.cpp
index 85a8c51e89e..c779536bd0d 100644
--- a/engines/sci/resource/resource_patcher.cpp
+++ b/engines/sci/resource/resource_patcher.cpp
@@ -104,9 +104,9 @@ namespace Sci {
 //  See also: script patch laurabow2CDPatchFixMuseumActorLoops
 static const byte lauraBow2CdView828[] = {
 	SKIP(0x02),
-	REPLACE(1, 0x05), // view header: 5 loops instead of 9
+	REPLACE(0x05), // view header: 5 loops instead of 9
 	SKIP(0x51),
-	REPLACE(1, 0x08), // loop 4: 8 cels instead of 1
+	REPLACE(0x08), // loop 4: 8 cels instead of 1
 	SKIP(0x09),
 	REPLACE_NUMBER(uint32, 0x01c2), // loop 4: offset to loop 8 cel data
 	END
@@ -122,9 +122,9 @@ static const byte lauraBow2CdView828[] = {
 //  Sound 205 is the engine noise that plays when summoning a taxi.
 static const byte lsl1RussianSound205[] = {
 	SKIP(0x31),
-	REPLACE(1, 0xFF),
+	REPLACE(0xFF),
 	SKIP(0x29),
-	REPLACE(1, 0xFF),
+	REPLACE(0xFF),
 	END
 };
 




More information about the Scummvm-git-logs mailing list