BLADERUNNER: Try and close all TLK on shutdown always
This commit is contained in:
parent
e6c61ff67b
commit
edd63137ab
1 changed files with 6 additions and 7 deletions
|
@ -71,14 +71,13 @@ void Chapters::closeResources() {
|
||||||
}
|
}
|
||||||
#endif // BLADERUNNER_ORIGINAL_BUGS
|
#endif // BLADERUNNER_ORIGINAL_BUGS
|
||||||
_vm->closeArchive(Common::String::format("VQA%d.MIX", MIN(id, 3)));
|
_vm->closeArchive(Common::String::format("VQA%d.MIX", MIN(id, 3)));
|
||||||
if (_vm->_cutContent) {
|
// It's better to try and close every TLK file here (if open), since
|
||||||
for (int chi = 1; chi < 4; ++chi) {
|
// when switching from Restored Content version to Original (due to a save game load)
|
||||||
if (_vm->isArchiveOpen(Common::String::format("%d.TLK", chi))) {
|
// TLK files would still remain open -- and should still be closed here
|
||||||
_vm->closeArchive(Common::String::format("%d.TLK", chi));
|
for (int chi = 1; chi < 4; ++chi) {
|
||||||
}
|
if (_vm->isArchiveOpen(Common::String::format("%d.TLK", chi))) {
|
||||||
|
_vm->closeArchive(Common::String::format("%d.TLK", chi));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
_vm->closeArchive(Common::String::format("%d.TLK", MIN(id, 3)));
|
|
||||||
}
|
}
|
||||||
_vm->closeArchive(Common::String::format("OUTTAKE%d.MIX", id));
|
_vm->closeArchive(Common::String::format("OUTTAKE%d.MIX", id));
|
||||||
_hasOpenResources = false;
|
_hasOpenResources = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue