From ef909b055850c3361afd8e4c014ef0f3d3c42fd6 Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Mon, 9 Jun 2025 21:08:24 -0400 Subject: [PATCH] feat(main): show build date on menu startup --- src/core/commands/HotkeySystem.cpp | 4 ++-- src/main.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/commands/HotkeySystem.cpp b/src/core/commands/HotkeySystem.cpp index c62fbfc..7105e04 100644 --- a/src/core/commands/HotkeySystem.cpp +++ b/src/core/commands/HotkeySystem.cpp @@ -72,8 +72,8 @@ namespace YimMenu void HotkeySystem::CreateHotkey(std::vector& chain) { static auto is_key_unique = [this](int Key, std::vector List) -> bool { - for (auto& Key_ : List) - if (GetHotkeyLabel(Key_) == GetHotkeyLabel(Key)) + for (auto& _key : List) + if (_key == Key) return false; return true; diff --git a/src/main.cpp b/src/main.cpp index 445c97e..ee6a753 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,6 +32,8 @@ namespace YimMenu LogHelper::Init("YimMenuV2", FileMgr::GetProjectFile("./cout.log")); + LOGF(INFO, "Welcome to YimMenuV2! Build date: {} at {}", __DATE__, __TIME__); + g_HotkeySystem.RegisterCommands(); SavedLocations::FetchSavedLocations(); Settings::Initialize(FileMgr::GetProjectFile("./settings.json"));