Ticket #9084: bug2855359.patch
File bug2855359.patch, 968 bytes (added by , 15 years ago) |
---|
-
scummvm/trunk/engines/scumm/charset.cpp
56 56 _2byteWidth = 16; 57 57 _2byteHeight = 16; 58 58 // use FM-TOWNS font rom, since game files don't have kanji font resources 59 if (fp.open("fmt_fnt.rom")) { 59 if (!fp.open("fmt_fnt.rom")) { 60 error("SCUMM::Font: Couldn't open fmt_fnt.rom"); 61 } else { 60 62 _useCJKMode = true; 61 63 debug(2, "Loading FM-TOWNS Kanji rom"); 62 64 _2byteFontPtr = new byte[((_2byteWidth + 7) / 8) * _2byteHeight * numChar]; … … 116 118 fp.read(_2byteFontPtr, ((_2byteWidth + 7) / 8) * _2byteHeight * numChar); 117 119 fp.close(); 118 120 } else { 119 error("Couldn't load any font"); 121 if (fontFile) 122 error("SCUMM::Font: Couldn't open %s",fontFile); 123 else 124 error("SCUMM::Font: Couldn't load any font"); 120 125 } 121 126 } 122 127 }