[Scummvm-git-logs] scummvm master -> 6a316498b52fc53f8b3a7316a10cddef0a83248b
bluegr
bluegr at gmail.com
Sun Oct 20 20:47:08 CEST 2019
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:
6a316498b5 STARTREK: Unify the text patching code
Commit: 6a316498b52fc53f8b3a7316a10cddef0a83248b
https://github.com/scummvm/scummvm/commit/6a316498b52fc53f8b3a7316a10cddef0a83248b
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2019-10-20T21:46:31+03:00
Commit Message:
STARTREK: Unify the text patching code
Changed paths:
engines/startrek/room.cpp
diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp
index d777564..a01f52f 100644
--- a/engines/startrek/room.cpp
+++ b/engines/startrek/room.cpp
@@ -194,6 +194,9 @@ Common::String Room::patchRoomMessage(const char *text) {
int i = 0;
TypoFix typoFixes[] = {
+ { "#LOV2\\LOV2_012#", "#LOV2\\LOV2_012#", "#LOV1\\LOV1_010#" }, // Audio file missing
+ { "#LOV3\\LOV3_#", "#LOV3\\LOV3_#", "#LOV3\\LOV3_000#"}, // Message index missing
+ { "#FEA3\\FEA3_030#", "#FEA3\\FEA3_030#", "#LOVA\\LOVA_100#" }, // Wrong voice actor
{ "#MUD0\\MUD0_023#", "gullability", "gullibility" },
{ "#MUD2\\MUD2_002#", "Well, now! I think", "Well, now I think" },
{ "#MUD2\\MUD2_014#", "I don't understand enough of the alien's thinking", "I don't understand enough of how the aliens thought," },
@@ -208,18 +211,6 @@ Common::String Room::patchRoomMessage(const char *text) {
if (txt[10] == '-')
txt.replace(10, 1, "_");
- // Message index missing
- if (txt.hasPrefix("#LOV3\\LOV3_#"))
- txt = Common::String("#LOV3\\LOV3_000#") + (text + 12);
-
- // Should be TX_LOV2_012, but the audio file is missing
- if (txt.hasPrefix("#LOV2\\LOV2_012#"))
- txt = Common::String("#LOV1\\LOV1_010#") + (text + 14);
-
- // Original voice clip is someone who's clearly not Kelley saying "he's dead, Jim"
- if (txt.hasPrefix("#FEA3\\FEA3_030#"))
- txt = Common::String("#LOVA\\LOVA_100#") + (text + 14);
-
// Fix typos
do {
const Common::String origText = typoFixes[i].origText;
More information about the Scummvm-git-logs
mailing list