From c81348e3fe6b49cf8671e476d74469846542f950 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Thu, 28 Sep 2017 13:50:20 -0500 Subject: SCI32: Block RAMA from creating PREF.DAT file This file normally stores brightness, music volume, and most recently used save game directory. Since we store the music volume ourselves and don't use the save game directory, the only potentially useful information is the brightness level, and that is fine to just restore from the save games. --- engines/sci/engine/kfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index d87013f01c..f32888b80c 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -443,6 +443,10 @@ reg_t kFileIOOpen(EngineState *s, int argc, reg_t *argv) { // Ignore the censorship password file in lieu of our game option return SIGNAL_REG; } else if (g_sci->getGameId() == GID_RAMA) { + if (name == "PREF.DAT") { + return SIGNAL_REG; + } + int saveNo = -1; if (name == "911.sg") { saveNo = kAutoSaveId; -- cgit v1.2.3