Decompile fn_15960 (GameSettingsUI::GetHotkeyText)

Batch #10085 by dori: 0 byte-identical, 1 confirmed by peer review.

- fn_15960 GameSettingsUI::GetHotkeyText: logic confirmed by peer review

Peer-reviewed-by: cremane, doczeira, codeplay
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-02 15:44:49 +00:00
commit faf78fa2b5

View file

@ -1544,9 +1544,9 @@ std::string GetHotkeyText(int tab, int index) {
HotkeyInfo info;
const char* keyText = nullptr;
const char* description = nullptr;
g_luaScript->Call("GetUserHotKeyInfo", "dd>ddss", tab + 1, index, &info.key1, &info.key2, &keyText, &description);
g_session.m_hotkeyScript->Call("GetUserHotKeyInfo", "dd>ddss", tab + 1, index, &info.key1, &info.key2, &keyText, &description);
if (IsNullOrEmpty(keyText)) {
g_luaScript->Call("GetOriginalHotKeyInfo", "dd>ddss", tab + 1, index, &info.key1, &info.key2, &keyText, &description);
g_session.m_hotkeyScript->Call("GetOriginalHotKeyInfo", "dd>ddss", tab + 1, index, &info.key1, &info.key2, &keyText, &description);
}
std::string text;