Decompile 3 functions in Source/UI/Window/UINewSelectCharWnd.cpp, Source/Client/Mode/CLoginMode.h, ...

Batch #8188 by eAthena: 0 byte-identical, 3 confirmed by peer review.

- fn_09597 UINewSelectCharWnd::sub_7D9260: logic confirmed by peer review (already on main)
- fn_09598 UINewSelectCharWnd::sub_7D9310: logic confirmed by peer review (already on main)
- fn_17173 UIWindowMgr::RestoreHiddenWindows: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, gordaoprogramas
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-31 15:00:58 +00:00
commit e91b95cb6f
2 changed files with 27 additions and 0 deletions

View file

@ -11,6 +11,9 @@
#include "UI/Window/MiniPartyWndAreaMgr.h"
#include "Render/Renderer.h"
#include "Client/Mode/ModeMgr.h"
#include "Client/Mode/CGameMode.h"
#include "Contents/World/World.h"
#include "Contents/Actors/Pc.h"
#include "Render/DeviceContext/DCSurface.h"
#include "Render/Textures/Surface.h"
#include "Resource/Bitmap/BitmapResource.h"
@ -19,6 +22,7 @@
#include "Client/ReplayPacketRecorder.h"
#include "Client/Mode/ModeDragState.h"
#include "Contents/UserData/NormalItemSlots.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstdio>
@ -1100,3 +1104,25 @@ void UIWindowMgr::FocusWindow01C8Edit() {
// FUNCTION: fn_17152
void __stdcall Nullsub369(int, int, int, int) {
}
// OFFSET: 0x00A91DB0
// FUNCTION: fn_17173
void UIWindowMgr::RestoreHiddenWindows() {
for (UIWindow* window : this->rendered) {
if (std::find(this->hiddenWindows.begin(), this->hiddenWindows.end(), window) != this->hiddenWindows.end()) {
window->Show(1);
}
}
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
if (mode && mode->unknown_0254 == 1) {
this->EnsureWindow(14);
}
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player->RefreshEffect164();
this->unknown_0508 = 1;
for (std::map<int, UIWindow*>::iterator it = this->overlays.begin(); it != this->overlays.end(); ++it) {
this->CloseWindow(it->first + 216);
}
}