diff options
author | Lars Skovlund | 2012-05-30 18:43:39 +0200 |
---|---|---|
committer | Lars Skovlund | 2012-05-30 18:43:39 +0200 |
commit | 403b646c13f0729a32c21f89a2e9284d84df34cf (patch) | |
tree | 3a48e111b2195e80c1afab6c386823d52b4b386a /engines/sci/engine | |
parent | de904c59c4bde9060efeb36896f7105f4e286e27 (diff) | |
download | scummvm-rg350-403b646c13f0729a32c21f89a2e9284d84df34cf.tar.gz scummvm-rg350-403b646c13f0729a32c21f89a2e9284d84df34cf.tar.bz2 scummvm-rg350-403b646c13f0729a32c21f89a2e9284d84df34cf.zip |
SCI32: Case-insensitive configuration getters
Diffstat (limited to 'engines/sci/engine')
-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 2be9432521..2911af97df 100644 --- a/engines/sci/engine/kmisc.cpp +++ b/engines/sci/engine/kmisc.cpp @@ -371,6 +371,8 @@ reg_t kGetConfig(EngineState *s, int argc, reg_t *argv) { // Anything below that makes Phantasmagoria awfully sluggish, so we're // setting everything to 500, which makes the game playable. + setting.toLowercase(); + if (setting == "videospeed") { s->_segMan->strcpy(data, "500"); } else if (setting == "cpu") { @@ -388,10 +390,12 @@ reg_t kGetConfig(EngineState *s, int argc, reg_t *argv) { reg_t kGetSierraProfileInt(EngineState *s, int argc, reg_t *argv) { Common::String category = s->_segMan->getString(argv[0]); // always "config" + category.toLowercase(); if (category != "config") error("GetSierraProfileInt: category isn't 'config', it's '%s'", category.c_str()); Common::String setting = s->_segMan->getString(argv[1]); + setting.toLowercase(); if (setting != "videospeed") error("GetSierraProfileInt: setting isn't 'videospeed', it's '%s'", setting.c_str()); |