diff options
| -rw-r--r-- | gui/eval.cpp | 4 | ||||
| -rw-r--r-- | gui/eval.h | 2 | ||||
| -rw-r--r-- | gui/theme-config.cpp | 2 | 
3 files changed, 6 insertions, 2 deletions
| diff --git a/gui/eval.cpp b/gui/eval.cpp index 5dcfdfe124..5d661cc9cf 100644 --- a/gui/eval.cpp +++ b/gui/eval.cpp @@ -49,7 +49,7 @@ Eval::~Eval() {  int Eval::eval(const String &input, const String §ion, const String &name, int startpos) {  	int result; -	debug(3, "%s=%s", name.c_str(), input.c_str()); +	debug(5, "%s=%s", name.c_str(), input.c_str());  	strncpy(_input, input.c_str(), 256);  	_section = section; @@ -65,7 +65,7 @@ int Eval::eval(const String &input, const String §ion, const String &name, i  	level2(&result); -	debug(3, "Result: %d", result); +	debug(5, "Result: %d", result);  	return result;  } diff --git a/gui/eval.h b/gui/eval.h index 1b2df123d4..1a0b6f91ff 100644 --- a/gui/eval.h +++ b/gui/eval.h @@ -65,6 +65,8 @@ public:  	int getVar(String s) { return getVar_(s.c_str()); }; +	uint getNumVars() { return _vars.size(); } +  	void reset();  	typedef HashMap<String, int> VariablesMap; diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index 22c641bb93..9e490ff358 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -522,6 +522,8 @@ void Theme::loadTheme(Common::ConfigFile &config, bool reset) {  	sprintf(name, "%dx%d", x, y);  	if (config.hasSection(name))  		processResSection(config, name); + +	debug(3, "Number of variables: %d", _evaluator->getNumVars());  }  } // End of namespace GUI | 
