Decompile fn_17124 (UIWindowMgr::RegisterNamedWindow)

Batch #1049 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review.

- fn_17124 UIWindowMgr::RegisterNamedWindow: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-27 12:14:55 +00:00
commit 4e5f7335ff
2 changed files with 10 additions and 1 deletions

View file

@ -621,3 +621,11 @@ UIWindowMgr::~UIWindowMgr() {
this->savedRectangles.clear();
}
// OFFSET: 0x00A8B840
// FUNCTION: fn_17124
void UIWindowMgr::RegisterNamedWindow(std::string name, UIWindow* window) {
if (this->namedWindows.find(name) == this->namedWindows.end()) {
this->namedWindows[name] = window;
}
}

View file

@ -341,7 +341,7 @@ public:
/* 04F4 */ int unknown_04F4;
/* 04F8 */ int unknown_04F8;
/* 04FC */ int unknown_04FC;
/* 0500 */ std::map<std::string, int> namedWindows;
/* 0500 */ std::map<std::string, UIWindow*> namedWindows;
/* 0508 */ int unknown_0508;
/* 050C */ std::list<UIWindow*> hiddenWindows;
/* 0514 */ unsigned char unknown_0514[0x12];
@ -421,6 +421,7 @@ public:
void Schedule(UIWindow* window);
void Destroy(UIWindow* window);
void DismissTransient();
void RegisterNamedWindow(std::string name, UIWindow* window);
};
extern UIWindowMgr g_windowMgr;