[Scummvm-cvs-logs] SF.net SVN: scummvm:[39904] scummvm/trunk/engines/scumm/script_v5.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Thu Apr 9 05:38:41 CEST 2009


Revision: 39904
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39904&view=rev
Author:   eriktorbjorn
Date:     2009-04-09 03:38:41 +0000 (Thu, 09 Apr 2009)

Log Message:
-----------
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.

Modified Paths:
--------------
    scummvm/trunk/engines/scumm/script_v5.cpp

Modified: scummvm/trunk/engines/scumm/script_v5.cpp
===================================================================
--- scummvm/trunk/engines/scumm/script_v5.cpp	2009-04-08 16:48:12 UTC (rev 39903)
+++ scummvm/trunk/engines/scumm/script_v5.cpp	2009-04-09 03:38:41 UTC (rev 39904)
@@ -2144,7 +2144,7 @@
 			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 @@
 			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());


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list