Decompile fn_17178 (UIWindowMgr::LoadUIRectInfo)

Batch #18120 by eAthena: 1 byte-identical, 0 confirmed by peer review.

- fn_17178 UIWindowMgr::LoadUIRectInfo: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 09:47:30 +00:00
commit f545883c1a
2 changed files with 11 additions and 4 deletions

View file

@ -45,3 +45,5 @@
extern template std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const int, UIWindow*>>>, std::_Iterator_base0>&
std::_Tree_unchecked_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const int, UIWindow*>>>, std::_Iterator_base0>::operator++() noexcept;
extern template std::_List_node<UIWindow*, void*>* std::list<UIWindow*>::_Emplace<UIWindow* const&>(std::_List_node<UIWindow*, void*>* const, UIWindow* const&);
using PersistentWindowTree = std::_Tree<std::_Tset_traits<UIWindow*, std::less<UIWindow*>, std::allocator<UIWindow*>, false>>;
extern template std::pair<std::_Tree_node<UIWindow*, void*>*, bool> PersistentWindowTree::_Emplace<UIWindow*>(UIWindow*&&);

View file

@ -219,13 +219,19 @@ void UIWindowMgr::LoadUIRectInfo() {
char name[256];
RegQueryValueExA(key, "m_minimapZoomWnd", nullptr, &type, reinterpret_cast<BYTE*>(&this->minimapZoom), &size);
if (RegQueryValueExA(key, "M_ISDRAGALL", nullptr, &type, reinterpret_cast<BYTE*>(&this->dragAllItems), &size) != ERROR_SUCCESS || this->dragAllItems != 0) {
if (RegQueryValueExA(key, "M_ISDRAGALL", nullptr, &type, reinterpret_cast<BYTE*>(&this->dragAllItems), &size) != ERROR_SUCCESS) {
this->dragAllItems = 1;
}
if (this->dragAllItems != 0) {
this->dragAllItems = 1;
}
if (RegQueryValueExA(key, "M_ISDRAWCOMPASS", nullptr, &type, reinterpret_cast<BYTE*>(&this->drawCompass), &size) != ERROR_SUCCESS) {
this->drawCompass = 0;
}
if (RegQueryValueExA(key, "M_MINIMAPARGB", nullptr, &type, reinterpret_cast<BYTE*>(&this->minimapColor), &size) != ERROR_SUCCESS || this->minimapColor != 0xFFFFFFFF) {
if (RegQueryValueExA(key, "M_MINIMAPARGB", nullptr, &type, reinterpret_cast<BYTE*>(&this->minimapColor), &size) != ERROR_SUCCESS) {
this->minimapColor = 0xAAFFFFFF;
}
if (this->minimapColor != 0xFFFFFFFF) {
this->minimapColor = 0xAAFFFFFF;
}
RegQueryValueExA(key, "M_CHATWNDSTATUS", nullptr, &type, reinterpret_cast<BYTE*>(&this->chatWndStatus), &size);
@ -308,9 +314,8 @@ void UIWindowMgr::LoadUIRectInfo() {
std::memset(name, 0, sizeof(name) - 1);
RegQueryValueExA(key, "ITEMSTOREWNDNUM", nullptr, &type, reinterpret_cast<BYTE*>(&this->itemStoreWindowCount), &size);
if (this->itemStoreWindowCount != 8) {
ItemStoreFindSlotInfo* const storeSlots = reinterpret_cast<ItemStoreFindSlotInfo*>(base + 0x62C);
for (int index = 0; index < 8; ++index) {
storeSlots[index].Reset(index);
reinterpret_cast<ItemStoreFindSlotInfo*>(base + 0x62C)[index].Reset(index);
}
this->itemStoreWindowCount = 8;
reinterpret_cast<ItemStoreFindListInfo*>(base + 0x614)->Reset();