aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-04-09 03:38:41 +0000
committerTorbjörn Andersson2009-04-09 03:38:41 +0000
commit068e11fee9c6e7077ef862ab4e0bd8bfdf6ae660 (patch)
tree00c959966c8afa39db077e7e2774e88e842d7b43 /engines/scumm
parentc111bb97f4b7a4af10fc1c2251cdee2de4b21802 (diff)
downloadscummvm-rg350-068e11fee9c6e7077ef862ab4e0bd8bfdf6ae660.tar.gz
scummvm-rg350-068e11fee9c6e7077ef862ab4e0bd8bfdf6ae660.tar.bz2
scummvm-rg350-068e11fee9c6e7077ef862ab4e0bd8bfdf6ae660.zip
Judging by bug #2727536 (and a forum post) we should recognize "IQ-" as a valid
prefix for the Fate of Atlantis IQ points file. (Either that, or make the comparision case-insensitive.) So let's do that. svn-id: r39904
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/script_v5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp
index 4a980d8b67..7700c13301 100644
--- a/engines/scumm/script_v5.cpp
+++ b/engines/scumm/script_v5.cpp
@@ -2144,7 +2144,7 @@ void ScummEngine_v5::o5_roomOps() {
while ((chr = fetchScriptByte()))
filename += chr;
- if (filename.hasPrefix("iq-") || filename.hasSuffix("-iq")) {
+ if (filename.hasPrefix("iq-") || filename.hasPrefix("IQ-") || filename.hasSuffix("-iq")) {
filename = _targetName + ".iq";
} else {
error("SO_SAVE_STRING: Unsupported filename %s\n", filename.c_str());
@@ -2169,7 +2169,7 @@ void ScummEngine_v5::o5_roomOps() {
while ((chr = fetchScriptByte()))
filename += chr;
- if (filename.hasPrefix("iq-") || filename.hasSuffix("-iq")) {
+ if (filename.hasPrefix("iq-") || filename.hasPrefix("IQ-") || filename.hasSuffix("-iq")) {
filename = _targetName + ".iq";
} else {
error("SO_LOAD_STRING: Unsupported filename %s\n", filename.c_str());