[Scummvm-git-logs] scummvm master -> 93b634fe7ca3995a40bc63325513bcbd682c8ade
sluicebox
22204938+sluicebox at users.noreply.github.com
Tue May 5 00:01:24 UTC 2020
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:
93b634fe7c SCI: Fix LSL1VGA Russian corrupt sound effect
Commit: 93b634fe7ca3995a40bc63325513bcbd682c8ade
https://github.com/scummvm/scummvm/commit/93b634fe7ca3995a40bc63325513bcbd682c8ade
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2020-05-04T16:55:47-07:00
Commit Message:
SCI: Fix LSL1VGA Russian corrupt sound effect
Fixes bug #11457
Changed paths:
engines/sci/resource_patcher.cpp
diff --git a/engines/sci/resource_patcher.cpp b/engines/sci/resource_patcher.cpp
index aa960f2924..b4a5cb65c0 100644
--- a/engines/sci/resource_patcher.cpp
+++ b/engines/sci/resource_patcher.cpp
@@ -93,6 +93,22 @@ namespace Sci {
*/
#define END kEndOfPatch
+#pragma mark -
+#pragma mark Leisure Suit Larry 1
+
+// LSL1 Russian contains a bad sound that uses 0xFE as a track entry terminator
+// instead of the correct value 0xFF. This would freeze Sierra's interpreter
+// if it parsed this entry, but that usually wouldn't happen since it would
+// find a matching track entry with the correct terminator earlier in the list.
+// Sound 205 is the engine noise that plays when summoning a taxi.
+static const byte lsl1RussianSound205[] = {
+ SKIP(0x31),
+ REPLACE(1, 0xFF),
+ SKIP(0x29),
+ REPLACE(1, 0xFF),
+ END
+};
+
#pragma mark -
#pragma mark Phantasmagoria
@@ -384,8 +400,9 @@ static const byte pq4EnhancedAudioToggleView[] = {
#pragma mark Patch table
static const GameResourcePatch resourcePatches[] = {
- { GID_PHANTASMAGORIA, Common::UNK_LANG, ResourceId(kResourceTypeView, 64001), phant1View64001Palette, false },
- { GID_PQ4, Common::EN_ANY, ResourceId(kResourceTypeView, 10988), pq4EnhancedAudioToggleView, true }
+ { GID_LSL1, Common::RU_RUS, ResourceId(kResourceTypeSound, 205), lsl1RussianSound205, false },
+ { GID_PHANTASMAGORIA, Common::UNK_LANG, ResourceId(kResourceTypeView, 64001), phant1View64001Palette, false },
+ { GID_PQ4, Common::EN_ANY, ResourceId(kResourceTypeView, 10988), pq4EnhancedAudioToggleView, true }
};
#pragma mark -
More information about the Scummvm-git-logs
mailing list