mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional change for r1166.
This commit is contained in:
parent
cab05532f5
commit
913cf05a18
@ -88,8 +88,11 @@ void* __stdcall RmGet(void* rm, int type)
|
|||||||
void __stdcall RmExecute(void* skin, LPCWSTR command)
|
void __stdcall RmExecute(void* skin, LPCWSTR command)
|
||||||
{
|
{
|
||||||
CMeterWindow* mw = (CMeterWindow*)skin;
|
CMeterWindow* mw = (CMeterWindow*)skin;
|
||||||
|
if (command)
|
||||||
|
{
|
||||||
Rainmeter->ExecuteCommand(command, mw);
|
Rainmeter->ExecuteCommand(command, mw);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
BOOL LSLog(int nLevel, LPCWSTR unused, LPCWSTR pszMessage)
|
BOOL LSLog(int nLevel, LPCWSTR unused, LPCWSTR pszMessage)
|
||||||
{
|
{
|
||||||
|
@ -1899,6 +1899,7 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
|
|||||||
|
|
||||||
if (meterWindow)
|
if (meterWindow)
|
||||||
{
|
{
|
||||||
|
meterWindow->GetParser().ReplaceMeasures(sound);
|
||||||
meterWindow->MakePathAbsolute(sound);
|
meterWindow->MakePathAbsolute(sound);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1914,9 +1915,18 @@ void CRainmeter::ExecuteCommand(const WCHAR* command, CMeterWindow* meterWindow)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run command
|
// Run command
|
||||||
|
if (meterWindow)
|
||||||
|
{
|
||||||
|
std::wstring tmpSz = command;
|
||||||
|
meterWindow->GetParser().ReplaceMeasures(tmpSz);
|
||||||
|
RunCommand(NULL, tmpSz.c_str(), SW_SHOWNORMAL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
RunCommand(NULL, command, SW_SHOWNORMAL);
|
RunCommand(NULL, command, SW_SHOWNORMAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** ReadGeneralSettings
|
** ReadGeneralSettings
|
||||||
|
Loading…
Reference in New Issue
Block a user