- Fixed: Rainmeter crashes if the Lua GetStringValue() function returns an invalid value

- Fixed: Rainmeter crashes on initialization if Lua is invalid (e.g. syntax error)
- Fixed: Rainmeter crashes on mouse action if Lua file is not initialized
- Fixed: Measure=SCRIPT tries to process mouse actions even if corresponding function does not exist in the Lua file causing log to fill with 'nil value' warnings
- Mainly cosmetic changes to logging of erros in Measure=SCRIPT
This commit is contained in:
Birunthan Mohanathas
2011-01-30 10:39:10 +00:00
parent 92eafce2dc
commit 4b30714520
5 changed files with 128 additions and 118 deletions

View File

@ -91,7 +91,7 @@ static int AsMeterString(lua_State* tolua_S)
static int staticLuaLog(lua_State* tolua_S)
{
const char* str = tolua_tostring(tolua_S,1,0);
LuaManager::LuaLog(str);
LuaManager::LuaLog(LOG_NOTICE, str);
return 0;
}