From f8338a8b71fc0677e19fa484c8f87b093221f7b2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Mon, 2 Nov 2026 12:29:48 +0000 Subject: [PATCH] Decompile fn_17820 (CMode::CMode) Batch #9982 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review. - fn_17820 CMode::CMode: logic confirmed by peer review Peer-reviewed-by: eAthena, Yommy Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Client/Mode/ModeCursor.cpp | 17 ++++++++++++++++- Source/Client/Mode/ModeCursor.h | 1 - 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Source/Client/Mode/ModeCursor.cpp b/Source/Client/Mode/ModeCursor.cpp index 34451517..1532a84c 100644 --- a/Source/Client/Mode/ModeCursor.cpp +++ b/Source/Client/Mode/ModeCursor.cpp @@ -1,3 +1,4 @@ +#include "Client/Mode/CMode.h" #include "Client/Mode/ModeCursor.h" #include @@ -5,7 +6,21 @@ // OFFSET: 0x00AD52D0 // FUNCTION: fn_17820 -ModeCursor::ModeCursor() : type(0), frame(0) { +CMode::CMode() { + this->screenshotName = ""; + this->running = 1; + this->pendingCursorType = -1; + this->unknown_0018 = 1; + this->tooltip = nullptr; + this->tooltipTick = timeGetTime(); + this->cursorAction = 0; + this->cursorActionFrame = 0; + this->cursorTick = timeGetTime(); + this->unknown_0028 = 0; + this->screenshotRequested = 0; + this->cursorOffsetX = 0.0f; + this->cursorOffsetY = 0.0f; + this->unknown_0010 = 0; } // OFFSET: 0x00AD75E0 diff --git a/Source/Client/Mode/ModeCursor.h b/Source/Client/Mode/ModeCursor.h index e7de591d..10ba2b5c 100644 --- a/Source/Client/Mode/ModeCursor.h +++ b/Source/Client/Mode/ModeCursor.h @@ -8,7 +8,6 @@ struct ModeCursor { /* 0050 */ std::int32_t type; /* 0054 */ std::uint32_t frame; - ModeCursor(); void Set(std::int32_t value, std::uint32_t& changeTick); };