Fixes issue in Apple builds where imgui was referring directly to Console.Commands

This commit is contained in:
Kenix3 2022-08-09 23:57:55 -04:00
parent 6484d9354d
commit 6766719969

View File

@ -861,7 +861,7 @@ namespace SohImGui {
if ((ImGui::IsKeyDown(ImGuiKey_LeftSuper) || if ((ImGui::IsKeyDown(ImGuiKey_LeftSuper) ||
ImGui::IsKeyDown(ImGuiKey_RightSuper)) && ImGui::IsKeyDown(ImGuiKey_RightSuper)) &&
ImGui::IsKeyPressed(ImGuiKey_R, false)) { ImGui::IsKeyPressed(ImGuiKey_R, false)) {
console->Commands["reset"].handler(emptyArgs); console->Dispatch("reset");
} }
#else #else
if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) ||