- Partially refactored bang handling code

- Renamed CMeasure::ExecuteBang to CMeasure::Command
- Minor cosmetic changes and tweaks
This commit is contained in:
Birunthan Mohanathas
2012-02-01 15:55:29 +00:00
parent 7531ddde27
commit b21658b1cd
11 changed files with 503 additions and 635 deletions

View File

@@ -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());
}