GRAPHICS: Display warning in case the SJIS.FNT version does not match.

This commit is contained in:
Johannes Schickel 2011-08-23 15:14:48 +02:00
parent e31ad4d665
commit 243779a7eb
2 changed files with 6 additions and 1 deletions

View file

@ -537,7 +537,8 @@ bool FontSjisSVM::loadData() {
}
uint32 version = data->readUint32BE();
if (version != 3) {
if (version != kSjisFontVersion) {
warning("SJIS font version mismatch, expected: %d found: %u", kSjisFontVersion, version);
delete data;
return false;
}

View file

@ -263,6 +263,10 @@ private:
const uint8 *getCharDataDefault(uint16 c) const;
void mapKANJIChar(const uint8 fB, const uint8 sB, int &base, int &index) const;
enum {
kSjisFontVersion = 3
};
};
// TODO: Consider adding support for PC98 ROM