aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanasis Antoniou2019-07-28 21:25:41 +0300
committerThanasis Antoniou2019-07-28 22:52:18 +0300
commit4ba487a064834a8fa1cca335981b24b4c96b5b12 (patch)
tree39097aedde1dab002347f57b8e0e0c583f1ae641
parent45e58abe3616d850d008e6550c158fcb92deb85d (diff)
downloadscummvm-rg350-4ba487a064834a8fa1cca335981b24b4c96b5b12.tar.gz
scummvm-rg350-4ba487a064834a8fa1cca335981b24b4c96b5b12.tar.bz2
scummvm-rg350-4ba487a064834a8fa1cca335981b24b4c96b5b12.zip
BLADERUNNER: Close MODE.MIX if ScummVM is closed during ESPER
-rw-r--r--engines/bladerunner/bladerunner.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index 4a2bf09f33..f451db1642 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -821,6 +821,11 @@ void BladeRunnerEngine::shutdown() {
closeArchive("MUSIC.MIX");
}
+ // in case player closes the ScummVM window when in ESPER mode or similar
+ if (isArchiveOpen("MODE.MIX")) {
+ closeArchive("MODE.MIX");
+ }
+
if (_chapters) {
if (_chapters->hasOpenResources())
_chapters->closeResources();