mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Tweaks
This commit is contained in:
@ -108,9 +108,10 @@ static int GetVariable(lua_State* L)
|
||||
CMeterWindow* self = GetSelf(L);
|
||||
std::wstring strTmp = LuaManager::ToWide(L, 2);
|
||||
|
||||
if (self->GetParser().GetVariable(strTmp, strTmp))
|
||||
const std::wstring* value = self->GetParser().GetVariable(strTmp);
|
||||
if (value)
|
||||
{
|
||||
LuaManager::PushWide(L, strTmp.c_str());
|
||||
LuaManager::PushWide(L, (*value).c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user