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.

svn-id: r46100
This commit is contained in:
Matthew Hoops 2009-11-22 23:33:58 +00:00
parent 604ed73b87
commit a7e6745ba4

View File

@ -76,7 +76,10 @@ void ScummEngine::loadCJKFont() {
} 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();