diff options
Diffstat (limited to 'scumm/resource_v3.cpp')
-rw-r--r-- | scumm/resource_v3.cpp | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/scumm/resource_v3.cpp b/scumm/resource_v3.cpp index 158ce4c4e3..92f718b8c4 100644 --- a/scumm/resource_v3.cpp +++ b/scumm/resource_v3.cpp @@ -181,12 +181,21 @@ void Scumm_v3::loadCharset(int no) { checkRange(4, 0, no, "Loading illegal charset %d"); closeRoom(); - openRoom(98 + no); - - size = _fileHandle.readUint16LE(); - - _fileHandle.read(createResource(6, no, size), size); - closeRoom(); + File file; + char buf[20]; + + sprintf(buf, "%02d.LFL", 99 - no); +// sprintf(buf, "%02d.LFL", 98 + no); + file.open(buf, _gameDataPath); + + if (file.isOpen() == false) { + error("loadCharset(%d): Missing file charset: %s", no, buf); + } + + size = file.readUint16LE(); + file.read(createResource(rtCharset, no, size), size); + + file.close(); } void Scumm_v3::readMAXS() { |