[Scummvm-cvs-logs] scummvm master -> 403b646c13f0729a32c21f89a2e9284d84df34cf

lskovlun lskovlun at sprogklog.dk
Wed May 30 18:45:11 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
403b646c13 SCI32: Case-insensitive configuration getters


Commit: 403b646c13f0729a32c21f89a2e9284d84df34cf
    https://github.com/scummvm/scummvm/commit/403b646c13f0729a32c21f89a2e9284d84df34cf
Author: Lars Skovlund (lskovlun at sprogklog.dk)
Date: 2012-05-30T09:43:39-07:00

Commit Message:
SCI32: Case-insensitive configuration getters

Changed paths:
    engines/sci/engine/kmisc.cpp



diff --git a/engines/sci/engine/kmisc.cpp b/engines/sci/engine/kmisc.cpp
index 2be9432..2911af9 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());
 






More information about the Scummvm-git-logs mailing list