From e2008265c89e87d69e2f610da50b221ae34d5743 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 29 Oct 2026 19:28:21 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/UserData/NormalItemSlots.cpp, Source/Contents/UserData/NormalItemSlots.h Batch #2788 by willerthal: 0 byte-identical, 2 confirmed by peer review. - fn_13665 ReplayRECControlWndInfo::IsValid: logic confirmed by peer review - fn_13666 SayDialogWndInfo::IsValid: logic confirmed by peer review Peer-reviewed-by: bigodeira, youko, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/UserData/NormalItemSlots.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Contents/UserData/NormalItemSlots.cpp b/Source/Contents/UserData/NormalItemSlots.cpp index f04326fd..2364c2cf 100644 --- a/Source/Contents/UserData/NormalItemSlots.cpp +++ b/Source/Contents/UserData/NormalItemSlots.cpp @@ -374,8 +374,18 @@ int QuickSlotWndInfo::IsValid() const { } // OFFSET: 0x009A5F70 +// FUNCTION: fn_13665 +int ReplayRECControlWndInfo::IsValid() const { + return this->width > 0 && this->height > 0 && this->x >= 0 && this->x <= g_renderer->viewport.width - this->width && this->y >= 0 && + this->y <= g_renderer->viewport.height - this->height; +} // OFFSET: 0x009A5FB0 +// FUNCTION: fn_13666 +int SayDialogWndInfo::IsValid() const { + return this->width == 280 && this->height == 180 && this->x >= 0 && this->x <= g_renderer->viewport.width - 280 && this->y >= 0 && + this->y <= g_renderer->viewport.height - 180; +} // OFFSET: 0x009A6110 // FUNCTION: fn_13668