aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2012-06-09 16:29:14 +0300
committerFilippos Karapetis2012-06-09 16:29:14 +0300
commitca3ea849d808b7f184cb05c42c317ed19edb73fc (patch)
tree42920e6bcc5e22b7f75714a9ed196654f3c91a65 /engines
parentdc11d223cdb156dd71300a8535cb5ab0940180c1 (diff)
downloadscummvm-rg350-ca3ea849d808b7f184cb05c42c317ed19edb73fc.tar.gz
scummvm-rg350-ca3ea849d808b7f184cb05c42c317ed19edb73fc.tar.bz2
scummvm-rg350-ca3ea849d808b7f184cb05c42c317ed19edb73fc.zip
SCI: Update information on kGetSierraProfileInt
Thanks to LePhilousophe for his feedback and observations on this
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kmisc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index 9a113bc5f9..f243cf2ffe 100644
--- a/engines/sci/engine/kmisc.cpp
+++ b/engines/sci/engine/kmisc.cpp
@@ -391,6 +391,8 @@ reg_t kGetConfig(EngineState *s, int argc, reg_t *argv) {
return argv[1];
}
+// 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) {
Common::String category = s->_segMan->getString(argv[0]); // always "config"
category.toLowercase();
@@ -402,8 +404,7 @@ reg_t kGetSierraProfileInt(EngineState *s, int argc, reg_t *argv) {
if (setting != "videospeed")
error("GetSierraProfileInt: setting isn't 'videospeed', it's '%s'", setting.c_str());
- // The game scripts pass 425 as the third parameter for some unknown reason,
- // as after the call they compare the result to 425 anyway...
+ // The third parameter is 425 (the default if the configuration key is missing)
// We return the same fake value for videospeed as with kGetConfig
return make_reg(0, 500);