Decompile fn_17176 (UIWindowMgr::LoadShortcutItems)
Batch #13227 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_17176 UIWindowMgr::LoadShortcutItems: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
c850384324
commit
805ded3f6b
1 changed files with 4 additions and 4 deletions
|
|
@ -165,13 +165,13 @@ void UIWindowMgr::LoadShortcutItems() {
|
|||
std::sprintf(name, "SITEM%d%d%d", index, g_serviceType, g_session.unknown_0F50);
|
||||
char description[33] = {};
|
||||
LSTATUS result = RegQueryValueExA(key, name, nullptr, &type, reinterpret_cast<BYTE*>(description), &size);
|
||||
bool hasSkillLevel = false;
|
||||
int hasSkillLevel = 0;
|
||||
g_session.m_hotkeyPage = static_cast<unsigned char>(index / 9);
|
||||
if (result == ERROR_SUCCESS) {
|
||||
if (description[0] == '#') {
|
||||
hasSkillLevel = true;
|
||||
} else {
|
||||
if (description[0] != '#') {
|
||||
g_session.SetHotkeyDescription(description, index);
|
||||
} else {
|
||||
hasSkillLevel = 1;
|
||||
}
|
||||
} else {
|
||||
g_session.SetHotkeyDescription("nothing", index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue