static and functional dispatchers
This commit is contained in:
parent
ab2c65e535
commit
66b5c5a143
3 changed files with 51 additions and 26 deletions
|
|
@ -203,6 +203,14 @@ void CConfigManager::handleBind(const std::string& command, const std::string& v
|
|||
|
||||
const auto COMMAND = valueCopy;
|
||||
|
||||
const auto DISPATCHER = g_pKeybindManager->m_mDispatchers.find(HANDLER);
|
||||
|
||||
if (DISPATCHER == g_pKeybindManager->m_mDispatchers.end()) {
|
||||
Debug::log(ERR, "Invalid dispatcher!");
|
||||
parseError = "Invalid dispatcher, requested \"" + HANDLER + "\" does not exist";
|
||||
return;
|
||||
}
|
||||
|
||||
if (KEY != "")
|
||||
g_pKeybindManager->addKeybind(SKeybind{KEY, MOD, HANDLER, COMMAND});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue