| 454 | std::vector<std::unique_ptr<ShortcutKey>> shortcut_storage; |
| 455 | |
| 456 | int set_next_command(const wchar_t *cmd_name, Pfuncplugincmd p_func) { |
| 457 | if (counter >= nb_func) { |
| 458 | assert(false); // Less actions specified in nb_func constant than added |
| 459 | return -1; |
| 460 | } |
| 461 | |
| 462 | if (p_func == nullptr) { |
| 463 | counter++; |
| 464 | return counter - 1; |
| 465 | } |
| 466 | |
| 467 | lstrcpy(func_item[counter].item_name, cmd_name); |
| 468 | func_item[counter].p_func = p_func; |
| 469 | func_item[counter].init2_check = false; |
| 470 | func_item[counter].p_sh_key = nullptr; |
| 471 | counter++; |
| 472 | |
| 473 | return counter - 1; |
| 474 | } |
| 475 | |
| 476 | std::wstring get_debug_log_path() { |
| 477 | std::vector<wchar_t> buf(MAX_PATH); |