mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Added #ROOTCONFIGPATH#.
This commit is contained in:
parent
17a0fcf33a
commit
d92f4f939d
@ -129,6 +129,19 @@ void CConfigParser::SetDefaultVariables(CRainmeter* pRainmeter, CMeterWindow* me
|
|||||||
SetVariable(L"CURRENTPATH", CRainmeter::ExtractPath(m_Filename));
|
SetVariable(L"CURRENTPATH", CRainmeter::ExtractPath(m_Filename));
|
||||||
SetVariable(L"ADDONSPATH", pRainmeter->GetPath() + L"Addons\\");
|
SetVariable(L"ADDONSPATH", pRainmeter->GetPath() + L"Addons\\");
|
||||||
SetVariable(L"CRLF", L"\n");
|
SetVariable(L"CRLF", L"\n");
|
||||||
|
|
||||||
|
if (meterWindow)
|
||||||
|
{
|
||||||
|
const std::wstring& config = meterWindow->GetSkinName();
|
||||||
|
if ((loc = config.find_first_of(L'\\')) != std::wstring::npos)
|
||||||
|
{
|
||||||
|
SetVariable(L"ROOTCONFIGPATH", pRainmeter->GetSkinPath() + config.substr(0, loc + 1));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetVariable(L"ROOTCONFIGPATH", pRainmeter->GetSkinPath() + config + L"\\");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (meterWindow)
|
if (meterWindow)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user