mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
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:
parent
604ed73b87
commit
a7e6745ba4
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user