[Scummvm-cvs-logs] SF.net SVN: scummvm: [25974] scummvm/trunk/tools/create_kyradat/ create_kyradat.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sun Mar 4 16:05:18 CET 2007
Revision: 25974
http://scummvm.svn.sourceforge.net/scummvm/?rev=25974&view=rev
Author: lordhoto
Date: 2007-03-04 07:05:17 -0800 (Sun, 04 Mar 2007)
Log Message:
-----------
Work around bad characters in "Long live King Brandon!" string in FM-Towns version. (thanks to Florian Kagerer)
Modified Paths:
--------------
scummvm/trunk/tools/create_kyradat/create_kyradat.cpp
Modified: scummvm/trunk/tools/create_kyradat/create_kyradat.cpp
===================================================================
--- scummvm/trunk/tools/create_kyradat/create_kyradat.cpp 2007-03-04 15:00:50 UTC (rev 25973)
+++ scummvm/trunk/tools/create_kyradat/create_kyradat.cpp 2007-03-04 15:05:17 UTC (rev 25974)
@@ -337,7 +337,10 @@
}
if (fmtPatch == 2) {
- targetsize += (g->special - 1);
+ if (g->special == kFMTownsVersionE)
+ targetsize--;
+ if (g->special == kFMTownsVersionJ)
+ targetsize += 2;
entries += (g->special - 1);
}
@@ -350,6 +353,10 @@
if (g->special == kFMTownsVersionE || g->special == kFMTownsVersionJ) {
const byte * c = data + size;
do {
+ if (fmtPatch == 2 && input - data == 0x3C0 && input[0x10] == 0x32) {
+ memcpy(output, input, 0x0F);
+ input += 0x11; output += 0x0F;
+ }
strcpy((char*) output, (const char*) input);
uint32 stringsize = strlen((const char*)output) + 1;
input += stringsize; output += stringsize;
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