From aa1f96cabfd0885b32c850fa272d082f262da226 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 01:34:37 +0000 Subject: [PATCH] Decompile fn_09707 (SnapObject::GetHeight) Batch #6672 by alisonrag: 1 byte-identical, 0 confirmed by peer review. - fn_09707 SnapObject::GetHeight: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Layout/SnapObject.cpp | 6 ++++++ Source/UI/Layout/SnapObject.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Source/UI/Layout/SnapObject.cpp b/Source/UI/Layout/SnapObject.cpp index 4d176458..d1616f40 100644 --- a/Source/UI/Layout/SnapObject.cpp +++ b/Source/UI/Layout/SnapObject.cpp @@ -107,6 +107,12 @@ bool SnapObject::Connected(SnapObject* target) { return false; } +// OFFSET: 0x007E2B00 +// FUNCTION: fn_09707 +int SnapObject::GetHeight() const { + return this->window->geometry.height; +} + // OFFSET: 0x007E2B10 // FUNCTION: fn_09708 void SnapObject::AccumulateHeight(int& height, int side) const { diff --git a/Source/UI/Layout/SnapObject.h b/Source/UI/Layout/SnapObject.h index 96a9164b..7cbbbf19 100644 --- a/Source/UI/Layout/SnapObject.h +++ b/Source/UI/Layout/SnapObject.h @@ -13,6 +13,7 @@ public: void Remove(SnapObject* object); bool Contains(SnapObject* target); bool Connected(SnapObject* target); + int GetHeight() const; void AccumulateHeight(int& height, int side) const; /* 0004 */ UIWindow* window;