aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2016-08-25 21:47:54 +0300
committerFilippos Karapetis2016-08-25 21:56:22 +0300
commit429759b48183f384bdc02c653b2f837e6fb058f0 (patch)
tree2dd5546e8ca87084741cd6ec85f947f871bf0826 /engines/sci
parentff628a6b627b098e51d2f458188c3fc3f3ea07b1 (diff)
downloadscummvm-rg350-429759b48183f384bdc02c653b2f837e6fb058f0.tar.gz
scummvm-rg350-429759b48183f384bdc02c653b2f837e6fb058f0.tar.bz2
scummvm-rg350-429759b48183f384bdc02c653b2f837e6fb058f0.zip
SCI32: Also handle chase.dat in Phantasmagoria like phantsg.dir
This file is used during the chase sequence, and needs the same read/write logic as phantsg.dir
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/file.cpp b/engines/sci/engine/file.cpp
index 156f6f51f7..8cecd8c82c 100644
--- a/engines/sci/engine/file.cpp
+++ b/engines/sci/engine/file.cpp
@@ -200,7 +200,7 @@ reg_t file_open(EngineState *s, const Common::String &filename, int mode, bool u
#ifdef ENABLE_SCI32
if (mode != _K_FILE_MODE_OPEN_OR_FAIL && (
- (g_sci->getGameId() == GID_PHANTASMAGORIA && filename == "phantsg.dir") ||
+ (g_sci->getGameId() == GID_PHANTASMAGORIA && (filename == "phantsg.dir" || filename == "chase.dat")) ||
(g_sci->getGameId() == GID_PQSWAT && filename == "swat.dat"))) {
debugC(kDebugLevelFile, " -> file_open opening %s for rewriting", wrappedName.c_str());