Ticket #4598: kanjiloadfailure.patch

File kanjiloadfailure.patch, 574 bytes (added by SF/*anonymous, 15 years ago)

suggested patch to show a warning

  • charset.cpp

     
    6262                        _2byteFontPtr = new byte[((_2byteWidth + 7) / 8) * _2byteHeight * numChar];
    6363                        fp.read(_2byteFontPtr, ((_2byteWidth + 7) / 8) * _2byteHeight * numChar);
    6464                        fp.close();
     65                } else {
     66                        error("Can't open font file: fmt_fnt.rom");
    6567                }
    6668                _textSurfaceMultiplier = 2;
    6769        } else if (_game.version >= 7 && (_language == Common::KO_KOR || _language == Common::JA_JPN || _language == Common::ZH_TWN)) {