From 66c77dcc88b52290a91dd6719ac5723da6ae6e95 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Tue, 10 Nov 2026 07:58:56 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Hotkeys/UserHotkeyScript.cpp Batch #15633 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_04055 ClearUserHotkeys: byte-identical - fn_04063 SaveUserHotkeys: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Hotkeys/UserHotkeyScript.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/Contents/Hotkeys/UserHotkeyScript.cpp b/Source/Contents/Hotkeys/UserHotkeyScript.cpp index eb256d381..7d19f01a1 100644 --- a/Source/Contents/Hotkeys/UserHotkeyScript.cpp +++ b/Source/Contents/Hotkeys/UserHotkeyScript.cpp @@ -8,11 +8,9 @@ template bool std::_Traits_equal>(const char*, std::size_ // FUNCTION: fn_04055 void ClearUserHotkeys() { std::string path = "SaveData\\UserKeys"; - path += ".lua"; + path = path + ".lua"; if (!path.empty()) { - if (g_session.m_hotkeyScript != nullptr) { - g_session.m_hotkeyScript->Call("ClearUserHotKeys", "s", path.c_str()); - } + g_session.m_hotkeyScript->Call("ClearUserHotKeys", "s", path.c_str()); } } @@ -20,11 +18,9 @@ void ClearUserHotkeys() { // FUNCTION: fn_04063 void SaveUserHotkeys() { std::string path = "SaveData\\UserKeys"; - path += ".lua"; + path = path + ".lua"; if (!path.empty()) { - if (g_session.m_hotkeyScript != nullptr) { - g_session.m_hotkeyScript->Call("SaveUserHotKeys2", "s", path.c_str()); - } + g_session.m_hotkeyScript->Call("SaveUserHotKeys2", "s", path.c_str()); } }