aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-18 19:12:36 +0200
committerEugene Sandulenko2017-08-18 19:13:22 +0200
commit2354c9de12b21974737f6ac456d2565b7f32e7e1 (patch)
tree634dd5eb1e7124b3b5fa44e1b5036088d2a9e846 /engines
parentbedbe39087531a4ee5d1a9a58e63b7f200426172 (diff)
downloadscummvm-rg350-2354c9de12b21974737f6ac456d2565b7f32e7e1.tar.gz
scummvm-rg350-2354c9de12b21974737f6ac456d2565b7f32e7e1.tar.bz2
scummvm-rg350-2354c9de12b21974737f6ac456d2565b7f32e7e1.zip
WAGE: Do not error on unprintable characters.
Makes Swamp Witch start
Diffstat (limited to 'engines')
-rw-r--r--engines/wage/detection_tables.h1
-rw-r--r--engines/wage/script.cpp11
2 files changed, 9 insertions, 3 deletions
diff --git a/engines/wage/detection_tables.h b/engines/wage/detection_tables.h
index b207946882..bde10785df 100644
--- a/engines/wage/detection_tables.h
+++ b/engines/wage/detection_tables.h
@@ -158,7 +158,6 @@ static const ADGameDescription gameDescriptions[] = {
FANGAME("Star Trek", "3067332e6f0bb0314579f9bf102e1b56", 53320),
FANGAME("Strange Disappearance", "9d6e41b61c0fc90400e5da2fcb653a4a", 772282),
FANGAME("The Sultan's Palace", "fde31cbcc77b66969b4cfcd43075341e", 456855),
- // Code 0x03 in text
FANGAME("Swamp Witch", "bd8c8394be31f7845d55785b7ccfbbde", 739781), // Original file name "Swamp Witch†"
FANGAME("Swamp Witch", "07463c8b3b908b0c493a41b949ac1ff5", 740131), // alt version, normal file name
FANGAME("Sweetspace Now!", "574dc7dd25543f7a516d6524f0c5ab33", 123813), // Comes with Jumble
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index c4cf23fcb1..3405c8bf47 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -1161,12 +1161,19 @@ void Script::convertToText() {
break;
if (c < 0x80) {
- if (c < 0x20)
- error("convertToText: Unknown code 0x%02x at %d", c, _data->pos());
+ if (c < 0x20) {
+ warning("convertToText: Unknown code 0x%02x at %d", c, _data->pos());
+ c = ' ';
+ }
do {
scr->line += c;
c = _data->readByte();
+
+ if (c < 0x20) {
+ warning("convertToText: Unknown code 0x%02x at %d", c, _data->pos());
+ c = ' ';
+ }
} while (c < 0x80);
_data->seek(-1, SEEK_CUR);