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"));