[Scummvm-cvs-logs] SF.net SVN: scummvm: [29287] scummvm/trunk/gui/theme-config.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun Oct 28 14:34:57 CET 2007


Revision: 29287
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29287&view=rev
Author:   lordhoto
Date:     2007-10-28 06:34:57 -0700 (Sun, 28 Oct 2007)

Log Message:
-----------
Cleanup.

Modified Paths:
--------------
    scummvm/trunk/gui/theme-config.cpp

Modified: scummvm/trunk/gui/theme-config.cpp
===================================================================
--- scummvm/trunk/gui/theme-config.cpp	2007-10-28 13:21:01 UTC (rev 29286)
+++ scummvm/trunk/gui/theme-config.cpp	2007-10-28 13:34:57 UTC (rev 29287)
@@ -765,13 +765,14 @@
 
 	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);
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list