From d18a43ae1f862629bee5bdd9a074d7bcea2bdfcc Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 05:40:00 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Hotkeys/UserHotkeyMgr.cpp Batch #11943 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_04052 CUserHotkeyMgr::CUserHotkeyMgr: byte-identical - fn_04056 CUserHotkeyMgr::Initialize: byte-identical (already on main) Merged automatically: every function is byte-identical to the original. --- Source/Contents/Hotkeys/UserHotkeyMgr.cpp | 56 ++++++++++++++++------- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/Source/Contents/Hotkeys/UserHotkeyMgr.cpp b/Source/Contents/Hotkeys/UserHotkeyMgr.cpp index 77612bb38..a60372da8 100644 --- a/Source/Contents/Hotkeys/UserHotkeyMgr.cpp +++ b/Source/Contents/Hotkeys/UserHotkeyMgr.cpp @@ -24,24 +24,43 @@ namespace { // INLINED bool HiddenInterfaceIndex(int index) { - switch (index) { - case HK_BATTLEFIELDWND: - case HK_PARTY_RECRUIT: - case HK_PARTY_BOOKING_LIST: - case HK_EXMACRO_SETUPWND: - case HK_BUTTONS_RELOCATE: - case HK_MENUICON_HIDE: - case HK_TWITTERWND: - case HK_HUNTINGQUEST_INFO_ONOFF: - case HK_UNKNOWN_62: - case HK_UNKNOWN_64: - case HK_UNKNOWN_65: - case HK_UNKNOWN_66: - case HK_UNKNOWN_67: + if (index == HK_BATTLEFIELDWND) { return true; - default: - return false; } + if (index == HK_PARTY_RECRUIT) { + return true; + } + if (index == HK_PARTY_BOOKING_LIST) { + return true; + } + if (index == HK_EXMACRO_SETUPWND) { + return true; + } + if (index == HK_TWITTERWND) { + return true; + } + if (index == HK_HUNTINGQUEST_INFO_ONOFF) { + return true; + } + if (index == HK_UNKNOWN_62) { + return true; + } + if (index == HK_UNKNOWN_64) { + return true; + } + if (index == HK_UNKNOWN_66) { + return true; + } + if (index == HK_UNKNOWN_65) { + return true; + } + if (index == HK_UNKNOWN_67) { + return true; + } + if (index == HK_BUTTONS_RELOCATE) { + return true; + } + return index == HK_MENUICON_HIDE; } // OFFSET: 0x00E12E50 @@ -84,7 +103,10 @@ CUserHotkeyMgr* g_userHotkeyMgr; // OFFSET: 0x005F7AA0 // FUNCTION: fn_04052 -CUserHotkeyMgr::CUserHotkeyMgr() : m_enabled(true), m_loaded(false), m_changes(0), m_version2(false) { +CUserHotkeyMgr::CUserHotkeyMgr() : m_loaded(false), m_changes(0), m_version2(false) { + this->m_enabled = false; + this->m_original.clear(); + this->m_enabled = true; } CUserHotkeyMgr::~CUserHotkeyMgr() = default;