mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Script: Added measure:ReadString(), measure:ReadNumber(), measure:ReadFormula()
This commit is contained in:
@ -37,12 +37,7 @@ static int Meter_GetOption(lua_State* L)
|
||||
CConfigParser& parser = meterWindow->GetParser();
|
||||
|
||||
std::wstring strTmp = LuaManager::ToWide(L, 2);
|
||||
strTmp = parser.GetValue(self->GetOriginalName(), strTmp, L"");
|
||||
|
||||
parser.SetBuiltInVariable(L"CURRENTSECTION", self->GetOriginalName()); // Set temporarily
|
||||
parser.ReplaceVariables(strTmp);
|
||||
parser.SetBuiltInVariable(L"CURRENTSECTION", L""); // Reset
|
||||
parser.ReplaceMeasures(strTmp);
|
||||
strTmp = parser.ReadString(self->GetName(), strTmp.c_str(), L"");
|
||||
|
||||
LuaManager::PushWide(L, strTmp.c_str());
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user