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.
This commit is contained in:
ragnarok-clanker 2026-11-10 07:58:56 +00:00
commit 66c77dcc88

View file

@ -8,11 +8,9 @@ template bool std::_Traits_equal<std::char_traits<char>>(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());
}
}