mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Fixing text strings embedded in the TOT
svn-id: r41903
This commit is contained in:
parent
43d61d598a
commit
5a6573d33d
@ -349,7 +349,7 @@ bool Resources::loadTOTTextTable(const Common::String &fileBase) {
|
||||
fromTOT = true;
|
||||
_totTextTable->data = _totData + totProps.textsOffset - _totResStart;
|
||||
_totTextTable->needFree = false;
|
||||
_totTextTable->size = _totSize - (totProps.textsOffset - _totResStart);
|
||||
_totTextTable->size = _totSize - totProps.textsOffset;
|
||||
}
|
||||
|
||||
if (_totTextTable->data) {
|
||||
@ -364,7 +364,7 @@ bool Resources::loadTOTTextTable(const Common::String &fileBase) {
|
||||
item.size = totTextTable.readSint16LE();
|
||||
|
||||
if (fromTOT)
|
||||
item.offset -= _totResStart;
|
||||
item.offset -= (totProps.textsOffset - _totResStart);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user