diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-06-18 21:31:41 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-06-18 21:31:41 +1200 |
| commit | 557faa2603d33d6f6a8b7baa9c9f7891bfcb8d30 (patch) | |
| tree | 825fd5fd7393ea40e4032a28ab16d6d6ed89dd88 /keybinds.cpp | |
| parent | d4196b2476909e2c92ece6363eee7f450d74be5f (diff) | |
| download | YATwm-557faa2603d33d6f6a8b7baa9c9f7891bfcb8d30.tar.gz YATwm-557faa2603d33d6f6a8b7baa9c9f7891bfcb8d30.zip | |
feat: Updated readme
Updated the readme and added a default config file.
Diffstat (limited to 'keybinds.cpp')
| -rw-r--r-- | keybinds.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/keybinds.cpp b/keybinds.cpp index 3a431f0..64d3fc8 100644 --- a/keybinds.cpp +++ b/keybinds.cpp @@ -15,10 +15,7 @@ KeybindsModule::KeybindsModule(CommandsModule& commandsModule, Config& cfg, Glob globals(globals), cfg(cfg) { - CommandArgType* bindArgs = new CommandArgType[2]; - bindArgs[0] = STR; - bindArgs[1] = STR_REST; - commandsModule.addCommand("bind", &KeybindsModule::bind, 2, bindArgs, this); + commandsModule.addCommand("bind", &KeybindsModule::bind, 2, {STR, STR_REST}, this); this->updateMousePos = updateMousePos; } |
