diff options
author | Colin Snover | 2017-08-04 00:42:02 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-19 19:54:29 -0500 |
commit | b0b1e89abe0d4f02245fcbd779275399e06a8965 (patch) | |
tree | 9a4658a0196779d0157001a958f92b7b999f6a17 | |
parent | 2f9967524f610f277c9c5109d1339e3e87957804 (diff) | |
download | scummvm-rg350-b0b1e89abe0d4f02245fcbd779275399e06a8965.tar.gz scummvm-rg350-b0b1e89abe0d4f02245fcbd779275399e06a8965.tar.bz2 scummvm-rg350-b0b1e89abe0d4f02245fcbd779275399e06a8965.zip |
SCI32: Hide warning about CD-ROM speed setting in kGetSierraProfileInt
In the DOS interpreters, this function is a no-op. Lighthouse calls
it regardless of platform, so dummy it out for non-Windows
platforms. This is not known to address any particular issue, and
is really just to eliminate the warning about an unknown
configuration setting when starting Lighthouse in a manner that is
compatible with the original interpreter.
-rw-r--r-- | engines/sci/engine/kmisc.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp index af3b7bbd00..62dc2b22ef 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -435,6 +435,10 @@ reg_t kGetConfig(EngineState *s, int argc, reg_t *argv) { // Likely modelled after the Windows 3.1 function GetPrivateProfileInt: // http://msdn.microsoft.com/en-us/library/windows/desktop/ms724345%28v=vs.85%29.aspx reg_t kGetSierraProfileInt(EngineState *s, int argc, reg_t *argv) { + if (g_sci->getPlatform() != Common::kPlatformWindows) { + return s->r_acc; + } + Common::String category = s->_segMan->getString(argv[0]); // always "config" category.toLowercase(); Common::String setting = s->_segMan->getString(argv[1]); |