aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorColin Snover2017-02-19 14:02:03 -0600
committerColin Snover2017-04-23 13:07:25 -0500
commit205f8c4a59cea068d46e76a39bd32b682682d3e9 (patch)
treed12d04c4b4294f44ef6e40563d6dee4edb88afed /engines
parent10a4e5d591e6e2af76b5b89395462475dd3b209b (diff)
downloadscummvm-rg350-205f8c4a59cea068d46e76a39bd32b682682d3e9.tar.gz
scummvm-rg350-205f8c4a59cea068d46e76a39bd32b682682d3e9.tar.bz2
scummvm-rg350-205f8c4a59cea068d46e76a39bd32b682682d3e9.zip
SCI32: Fix call to kFileIOIsValidDirectory in RAMA
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kernel_tables.h2
-rw-r--r--engines/sci/engine/kfile.cpp7
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/sci/engine/kernel_tables.h b/engines/sci/engine/kernel_tables.h
index c103d2d9e0..fd7415ba8f 100644
--- a/engines/sci/engine/kernel_tables.h
+++ b/engines/sci/engine/kernel_tables.h
@@ -332,7 +332,7 @@ static const SciKernelMapSubEntry kFileIO_subops[] = {
{ SIG_SINCE_SCI21MID, 16, MAP_CALL(FileIOWriteWord), "ii", NULL },
{ SIG_SINCE_SCI21MID, 17, "FileIOCheckFreeSpace", kCheckFreeSpace, "i(r)", NULL },
{ SIG_SINCE_SCI21MID, 18, MAP_CALL(FileIOGetCWD), "r", NULL },
- { SIG_SINCE_SCI21MID, 19, MAP_CALL(FileIOIsValidDirectory), "r", NULL },
+ { SIG_SINCE_SCI21MID, 19, MAP_CALL(FileIOIsValidDirectory), "[ro]", NULL },
#endif
SCI_SUBOPENTRY_TERMINATOR
};
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp
index 2ef2d76a62..8429af167b 100644
--- a/engines/sci/engine/kfile.cpp
+++ b/engines/sci/engine/kfile.cpp
@@ -864,9 +864,10 @@ reg_t kFileIOGetCWD(EngineState *s, int argc, reg_t *argv) {
}
reg_t kFileIOIsValidDirectory(EngineState *s, int argc, reg_t *argv) {
- // Used in Torin's Passage and LSL7 to determine if the directory passed as
- // a parameter (usually the save directory) is valid. We always return true
- // here.
+ // Used in Torin's Passage, LSL7, and RAMA to determine if the directory
+ // passed as a parameter (usually the save directory) is valid. We always
+ // return true here because we do not use this directory information when
+ // saving games.
return TRUE_REG;
}