aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2007-10-28 13:34:57 +0000
committerJohannes Schickel2007-10-28 13:34:57 +0000
commitfefc228cd27096889fad1839f978f35d50ab3b45 (patch)
tree675c0abc7e5061f4439b307db3cbfa6a69b9ac0c /gui
parent7860b90051bfb034874d5b5a3d574d718f89bc03 (diff)
downloadscummvm-rg350-fefc228cd27096889fad1839f978f35d50ab3b45.tar.gz
scummvm-rg350-fefc228cd27096889fad1839f978f35d50ab3b45.tar.bz2
scummvm-rg350-fefc228cd27096889fad1839f978f35d50ab3b45.zip
Cleanup.
svn-id: r29287
Diffstat (limited to 'gui')
-rw-r--r--gui/theme-config.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp
index 0428e60027..e8adf7c327 100644
--- a/gui/theme-config.cpp
+++ b/gui/theme-config.cpp
@@ -765,13 +765,14 @@ void Theme::loadTheme(Common::ConfigFile &config, bool reset) {
debug(3, "Number of variables: %d", _evaluator->getNumVars());
}
+
void Theme::loadTheme(Common::ConfigFile &config, bool reset, bool doBackendSpecificPostProcessing) {
loadTheme(config, reset);
if (doBackendSpecificPostProcessing && !g_system->getExtraThemeConfig().empty()) {
Common::ConfigFile myConfig;
Common::String myConfigINI = g_system->getExtraThemeConfig();
- Common::MemoryReadStream s((const byte *)myConfigINI.c_str(), strlen(myConfigINI.c_str()));
+ Common::MemoryReadStream s((const byte *)myConfigINI.c_str(), myConfigINI.size());
myConfig.loadFromStream(s);
loadTheme(myConfig, false);
}