GRAPHICS: Display warning in case the SJIS.FNT version does not match.
This commit is contained in:
parent
e31ad4d665
commit
243779a7eb
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue