From 429759b48183f384bdc02c653b2f837e6fb058f0 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 25 Aug 2016 21:47:54 +0300 Subject: 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 --- engines/sci/engine/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3