commit 73cdb1e8a42e737ae0442d9461786d6d92620033 Author: Lars Skovlund Date: Thu Nov 7 04:48:54 2024 +0100 SCI: Add support for cdb-boop's SQ5 voice patch diff --git a/engines/sci/engine/features.cpp b/engines/sci/engine/features.cpp index 90b7e8a04fb..36e7335398c 100644 --- a/engines/sci/engine/features.cpp +++ b/engines/sci/engine/features.cpp @@ -560,6 +560,7 @@ SciVersion GameFeatures::detectSci21KernelType() { bool GameFeatures::supportsSpeechWithSubtitles() const { switch (g_sci->getGameId()) { case GID_SQ4: + case GID_SQ5: case GID_FREDDYPHARKAS: case GID_ECOQUEST: case GID_LSL6: diff --git a/engines/sci/engine/workarounds.cpp b/engines/sci/engine/workarounds.cpp index 5736ad99449..5b9b8ee52a5 100644 --- a/engines/sci/engine/workarounds.cpp +++ b/engines/sci/engine/workarounds.cpp @@ -369,6 +369,7 @@ const SciWorkaroundEntry uninitializedReadWorkarounds[] = { { GID_KQ6, -1, 907, 0, "tomato", "doVerb", nullptr, 2, 2, { WORKAROUND_FAKE, 0 } }, // when looking at the rotten tomato in the inventory - bug #5331 { GID_KQ6, -1, 921, -1, "Print", "addEdit", nullptr, 1, 1, { WORKAROUND_FAKE, 0 } }, // when displaying the game debugger's teleport dialog { GID_KQ6, -1, 928, 0, nullptr, "startText", nullptr, 0, 0, { WORKAROUND_FAKE, 0 } }, // gets caused by Text+Audio support (see script patcher) + { GID_SQ5, -1, 928, 0, nullptr, "startText", nullptr, 0, 0, { WORKAROUND_FAKE, 0 } }, // gets caused by Text+Audio support (see script patcher) { GID_KQ7, -1, 64996, 0, "User", "handleEvent", nullptr, 1, 1, { WORKAROUND_FAKE, 0 } }, // called when pushing a keyboard key { GID_KQ7, 2450, 2450, 0, "exBridge", "handleEvent", nullptr, 0, 0, { WORKAROUND_FAKE, 0 } }, // called when walking up to the throne in the cave in chapter 2 { GID_KQ7, 2450, 2450, 0, "maliciaComes", "handleEvent", nullptr, 0, 0, { WORKAROUND_FAKE, 0 } }, // when malicia appears at the southeast exit of the main chamber near the end of chapter 2