From 400e5988ab07cb191b22c69bee7db8fa2347fdf0 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 09:57:47 +0000 Subject: [PATCH] Decompile fn_18787 (EffectLists::RegisterAllocator) Batch #5268 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_18787 EffectLists::RegisterAllocator: logic confirmed by peer review Peer-reviewed-by: youko, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Effects/EffectLists.cpp | 8 ++++++++ Source/Contents/Effects/EffectLists.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/Source/Contents/Effects/EffectLists.cpp b/Source/Contents/Effects/EffectLists.cpp index 156a539f..8cff099c 100644 --- a/Source/Contents/Effects/EffectLists.cpp +++ b/Source/Contents/Effects/EffectLists.cpp @@ -656,3 +656,11 @@ CSprArrowEffect::~CSprArrowEffect() { CChopChopClawMarks::~CChopChopClawMarks() { } + +// OFFSET: 0x00B3A430 +// FUNCTION: fn_18787 +bool EffectLists::RegisterAllocator(int id, CAllocator* allocator) { + return this->allocators.try_emplace(id, allocator).second; +} + +// OFFSET: 0x00B3AF30 diff --git a/Source/Contents/Effects/EffectLists.h b/Source/Contents/Effects/EffectLists.h index 01f9a00e..ab80f273 100644 --- a/Source/Contents/Effects/EffectLists.h +++ b/Source/Contents/Effects/EffectLists.h @@ -45,6 +45,8 @@ public: void Release(); void SpawnLevel99(CRenderObject* actor, unsigned char flag, int extra); bool RegisterAllocators(); + bool RegisterAllocator(int id, CAllocator* allocator); + void Update(); }; #if defined(_WIN32) && !defined(_WIN64)