Decompile fn_15960 (GameSettingsUI::CUIListPage::GetHotkeyText)
Batch #16715 by bibinir: 0 byte-identical, 1 confirmed by peer review. - fn_15960 GameSettingsUI::CUIListPage::GetHotkeyText: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b904d8e567
commit
cb91c7361d
1 changed files with 8 additions and 5 deletions
|
|
@ -1607,18 +1607,21 @@ void CUIGroupGraphicsAPI::Refresh() {
|
|||
// OFFSET: 0x00A3FCD0
|
||||
// FUNCTION: fn_15960
|
||||
std::string CUIListPage::GetHotkeyText(int tab, int index) {
|
||||
HotkeyInfo info;
|
||||
int key1 = 0;
|
||||
int key2 = 0;
|
||||
std::string hotkeyText;
|
||||
std::string hotkeyDescription;
|
||||
const char* keyText = nullptr;
|
||||
const char* description = nullptr;
|
||||
g_session.m_hotkeyScript->Call("GetUserHotKeyInfo", "dd>ddss", tab + 1, index, &info.key1, &info.key2, &keyText, &description);
|
||||
g_session.m_hotkeyScript->Call("GetUserHotKeyInfo", "dd>ddss", tab + 1, index, &key1, &key2, &keyText, &description);
|
||||
if (IsNullOrEmpty(keyText)) {
|
||||
g_session.m_hotkeyScript->Call("GetOriginalHotKeyInfo", "dd>ddss", tab + 1, index, &info.key1, &info.key2, &keyText, &description);
|
||||
g_session.m_hotkeyScript->Call("GetOriginalHotKeyInfo", "dd>ddss", tab + 1, index, &key1, &key2, &keyText, &description);
|
||||
}
|
||||
|
||||
if (IsNullOrEmpty(keyText)) {
|
||||
return "";
|
||||
return std::string();
|
||||
}
|
||||
return keyText;
|
||||
return std::string(keyText);
|
||||
}
|
||||
|
||||
// OFFSET: 0x00A40C30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue