aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2017-09-28 13:50:20 -0500
committerColin Snover2017-09-28 14:58:18 -0500
commitc81348e3fe6b49cf8671e476d74469846542f950 (patch)
tree14d7514ac62bb3fb1004bf9b680b77b31c73d55b /engines/sci
parent81d6706cf4bce3cd479dda685fc4c9fd164d8920 (diff)
downloadscummvm-rg350-c81348e3fe6b49cf8671e476d74469846542f950.tar.gz
scummvm-rg350-c81348e3fe6b49cf8671e476d74469846542f950.tar.bz2
scummvm-rg350-c81348e3fe6b49cf8671e476d74469846542f950.zip
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.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/engine/kfile.cpp4
1 files changed, 4 insertions, 0 deletions
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;