mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
- Partially refactored bang handling code
- Renamed CMeasure::ExecuteBang to CMeasure::Command - Minor cosmetic changes and tweaks
This commit is contained in:
@@ -219,14 +219,14 @@ void CMeasureScript::ReadConfig(CConfigParser& parser, const WCHAR* section)
|
||||
}
|
||||
|
||||
/*
|
||||
** ExecuteBang
|
||||
** Command
|
||||
**
|
||||
** Sends a bang to the measure.
|
||||
** Executes a custom bang.
|
||||
**
|
||||
*/
|
||||
void CMeasureScript::ExecuteBang(const WCHAR* args)
|
||||
void CMeasureScript::Command(const std::wstring& command)
|
||||
{
|
||||
std::string str = ConvertToAscii(args);
|
||||
std::string str = ConvertToAscii(command.c_str());
|
||||
m_LuaScript->RunString(str.c_str());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user