[Scummvm-cvs-logs] SF.net SVN: scummvm:[46100] scummvm/trunk/engines/scumm/charset.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Mon Nov 23 00:33:58 CET 2009
Revision: 46100
http://scummvm.svn.sourceforge.net/scummvm/?rev=46100&view=rev
Author: mthreepwood
Date: 2009-11-22 23:33:58 +0000 (Sun, 22 Nov 2009)
Log Message:
-----------
Some PCE BIOSROM's have a 0x200 byte header. We need to skip that if it's present to get to the correct font data.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/charset.cpp
Modified: scummvm/trunk/engines/scumm/charset.cpp
===================================================================
--- scummvm/trunk/engines/scumm/charset.cpp 2009-11-22 21:27:30 UTC (rev 46099)
+++ scummvm/trunk/engines/scumm/charset.cpp 2009-11-22 23:33:58 UTC (rev 46100)
@@ -76,7 +76,10 @@
} else {
_useCJKMode = true;
debug(2, "Loading PC-Engine System Card");
- fp.seek(0x30000);
+
+ // A 0x200 byte header can be present at the beginning of the syscard. Seek past it too.
+ fp.seek((fp.size() & 0x200) ? 0x30200 : 0x30000);
+
_2byteFontPtr = new byte[_2byteWidth * _2byteHeight * numChar / 8];
fp.read(_2byteFontPtr, _2byteWidth * _2byteHeight * numChar / 8);
fp.close();
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