diff options
author | Filippos Karapetis | 2011-10-09 19:07:52 +0300 |
---|---|---|
committer | Filippos Karapetis | 2011-10-09 19:16:03 +0300 |
commit | a6884d7d691834f4e6b4c271f96d06a974cffbfc (patch) | |
tree | f900f6d45f7a8dc2926d7745a6a7dd54e492bcfe /engines | |
parent | 69d08a7192addd59b80b80bfbf18ad012db9043f (diff) | |
download | scummvm-rg350-a6884d7d691834f4e6b4c271f96d06a974cffbfc.tar.gz scummvm-rg350-a6884d7d691834f4e6b4c271f96d06a974cffbfc.tar.bz2 scummvm-rg350-a6884d7d691834f4e6b4c271f96d06a974cffbfc.zip |
SCI2+: Added info for the extra parameter used in kGetSaveDir in SCI32
The warning can be safely removed, as the parameter is a string that
should not be set
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/kfile.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/sci/engine/kfile.cpp b/engines/sci/engine/kfile.cpp index 0c73125bdb..06af6e0de0 100644 --- a/engines/sci/engine/kfile.cpp +++ b/engines/sci/engine/kfile.cpp @@ -365,9 +365,12 @@ reg_t kDeviceInfo(EngineState *s, int argc, reg_t *argv) { reg_t kGetSaveDir(EngineState *s, int argc, reg_t *argv) { #ifdef ENABLE_SCI32 - // TODO: SCI32 uses a parameter here. - if (argc > 0) - warning("kGetSaveDir called with %d parameter(s): %04x:%04x", argc, PRINT_REG(argv[0])); + // SCI32 uses a parameter here. It is used to modify a string, stored in a + // global variable, so that game scripts store the save directory. We + // don't really set a save game directory, thus not setting the string to + // anything is the correct thing to do here. + //if (argc > 0) + // warning("kGetSaveDir called with %d parameter(s): %04x:%04x", argc, PRINT_REG(argv[0])); #endif return s->_segMan->getSaveDirPtr(); } |