mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
BLADERUNNER: Set old and new outtake filename only if container > 0
This commit is contained in:
parent
0f1262bc82
commit
1bda2b5546
@ -47,10 +47,12 @@ OuttakePlayer::~OuttakePlayer() {
|
||||
}
|
||||
|
||||
void OuttakePlayer::play(const Common::String &name, bool noLocalization, int container) {
|
||||
Common::String oldOuttakeFile = Common::String::format("OUTTAKE%d.MIX", _vm->_chapters->currentResourceId());
|
||||
Common::String newOuttakeFile = Common::String::format("OUTTAKE%d.MIX", container);
|
||||
|
||||
Common::String oldOuttakeFile;
|
||||
Common::String newOuttakeFile;
|
||||
if (container > 0) {
|
||||
oldOuttakeFile = Common::String::format("OUTTAKE%d.MIX", _vm->_chapters->currentResourceId());
|
||||
newOuttakeFile = Common::String::format("OUTTAKE%d.MIX", container);
|
||||
|
||||
if (_vm->isArchiveOpen(oldOuttakeFile)
|
||||
&& _vm->_chapters->currentResourceId() != container) {
|
||||
_vm->closeArchive(oldOuttakeFile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user