Decompile fn_23914 (CSession::SetHotkeyDescription)
Batch #3347 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_23914 CSession::SetHotkeyDescription: logic confirmed by peer review Peer-reviewed-by: eAthena, meitogi 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
8ef10a001a
commit
916e21db3c
1 changed files with 17 additions and 0 deletions
|
|
@ -456,6 +456,23 @@ void CSession::SetHotkeyDescription(const char* description, int index) {
|
|||
}
|
||||
|
||||
// OFFSET: 0x00E26430
|
||||
// FUNCTION: fn_23914
|
||||
void CSession::SetHotkeyDescription(const char* description, std::uint32_t skillLevel, int index) {
|
||||
for (int slot = 9 * this->m_hotkeyPage; slot < 9 * (this->m_hotkeyPage + 1); ++slot) {
|
||||
if (this->m_hotkeyDescriptions[slot] == description && this->unknown_0420[slot] == skillLevel) {
|
||||
this->m_hotkeyDescriptions[slot] = "nothing";
|
||||
this->unknown_0420[slot] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (std::strlen(description) == 0) {
|
||||
this->m_hotkeyDescriptions[index] = "nothing";
|
||||
this->unknown_0420[index] = 0;
|
||||
} else {
|
||||
this->m_hotkeyDescriptions[index] = description;
|
||||
this->unknown_0420[index] = skillLevel;
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E26540
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue