[Scummvm-cvs-logs] SF.net SVN: scummvm: [25410] scummvm/trunk/engines/kyra/script_v1.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Feb 7 17:28:30 CET 2007


Revision: 25410
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25410&view=rev
Author:   lordhoto
Date:     2007-02-07 08:28:29 -0800 (Wed, 07 Feb 2007)

Log Message:
-----------
Implemented little diff in o1_characterSays for fm-towns version.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/script_v1.cpp

Modified: scummvm/trunk/engines/kyra/script_v1.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_v1.cpp	2007-02-07 16:27:43 UTC (rev 25409)
+++ scummvm/trunk/engines/kyra/script_v1.cpp	2007-02-07 16:28:29 UTC (rev 25410)
@@ -48,7 +48,25 @@
 		characterSays(stackPos(0), stackPosString(1), stackPos(2), stackPos(3));
 	} else {
 		debugC(3, kDebugLevelScriptFuncs, "o1_characterSays(%p) ('%s', %d, %d)", (const void *)script, stackPosString(0), stackPos(1), stackPos(2));
-		characterSays(-1, stackPosString(0), stackPos(1), stackPos(2));
+		const char *string = stackPosString(0);
+
+		if (_flags.platform == Common::kPlatformFMTowns && _flags.lang == Common::JA_JPN) {
+			static const char townsString1[] = {
+				0x83, 0x75, 0x83, 0x89, 0x83, 0x93, 0x83, 0x83, 0x93, 0x81,
+				0x41, 0x82, 0xDC, 0x82, 0xBD, 0x97, 0x88, 0x82, 0xBD, 0x82,
+				0xCC, 0x82, 0xA9, 0x81, 0x48, 0x00, 0x00, 0x00
+			};
+			static const char townsString2[] = {
+				0x83, 0x75, 0x83, 0x89, 0x83, 0x93, 0x83, 0x5C, 0x83, 0x93,
+				0x81, 0x41, 0x82, 0xDC, 0x82, 0xBD, 0x97, 0x88, 0x82, 0xBD,
+				0x82, 0xCC, 0x82, 0xA9, 0x81, 0x48, 0x00, 0x00
+			};
+
+			if (strncmp(townsString1, string, sizeof(townsString1)) == 0)
+				string = townsString2;
+		}
+
+		characterSays(-1, string, stackPos(1), stackPos(2));
 	}
 
 	return 0;


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