From b4f8dbb96fff7098ada10e1adbf63ae9409ecfcd Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 16:36:04 +0000 Subject: [PATCH] Decompile 4 functions in Source/Contents/Effects/Core/EffectMemoryMgr.cpp Batch #18605 by eAthena: 4 byte-identical, 0 confirmed by peer review. - fn_19267 ?Alloc@?$CEffectMemoryPool@VCEZ2STRParticle@@@?A0xf030716c@@UAEPAVCParticle@@XZ: byte-identical - fn_19268 ?Alloc@?$CEffectMemoryPool@VCMultiTexParticle@@@?A0xf030716c@@UAEPAVCParticle@@XZ: byte-identical - fn_19269 ?Alloc@?$CEffectMemoryPool@VCParticle@@@?A0xf030716c@@UAEPAVCParticle@@XZ: byte-identical - fn_19270 ?Alloc@?$CEffectMemoryPool@VCSpriteParticle@@@?A0xf030716c@@UAEPAVCParticle@@XZ: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/Core/EffectMemoryMgr.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/Contents/Effects/Core/EffectMemoryMgr.cpp b/Source/Contents/Effects/Core/EffectMemoryMgr.cpp index 66807b8f5..6a5a66c0e 100644 --- a/Source/Contents/Effects/Core/EffectMemoryMgr.cpp +++ b/Source/Contents/Effects/Core/EffectMemoryMgr.cpp @@ -71,13 +71,13 @@ namespace { template <> CParticle* CEffectMemoryPool::Alloc() { if (!this->m_free.empty()) { - CEZ2STRParticle* particle = this->m_free.front(); + CEZ2STRParticle* particle = this->m_free[0]; particle->Clear(); this->m_free.pop_front(); return particle; } - return new (std::nothrow) CEZ2STRParticle(vector3d(), -1); + return new (std::nothrow) CEZ2STRParticle(vector3d{0.0f, 0.0f, 0.0f}, -1); } // OFFSET: 0x00B81DF0 @@ -85,13 +85,13 @@ CParticle* CEffectMemoryPool::Alloc() { template <> CParticle* CEffectMemoryPool::Alloc() { if (!this->m_free.empty()) { - CMultiTexParticle* particle = this->m_free.front(); + CMultiTexParticle* particle = this->m_free[0]; particle->Reset(); this->m_free.pop_front(); return particle; } - return new (std::nothrow) CMultiTexParticle(vector3d(), -1); + return new (std::nothrow) CMultiTexParticle(vector3d{0.0f, 0.0f, 0.0f}, -1); } // OFFSET: 0x00B81EE0 @@ -99,13 +99,13 @@ CParticle* CEffectMemoryPool::Alloc() { template <> CParticle* CEffectMemoryPool::Alloc() { if (!this->m_free.empty()) { - CParticle* particle = this->m_free.front(); + CParticle* particle = this->m_free[0]; particle->Reset(); this->m_free.pop_front(); return particle; } - return new (std::nothrow) CParticle(vector3d(), -1); + return new (std::nothrow) CParticle(vector3d{0.0f, 0.0f, 0.0f}, -1); } // OFFSET: 0x00B81FD0 @@ -113,13 +113,13 @@ CParticle* CEffectMemoryPool::Alloc() { template <> CParticle* CEffectMemoryPool::Alloc() { if (!this->m_free.empty()) { - CSpriteParticle* particle = this->m_free.front(); + CSpriteParticle* particle = this->m_free[0]; particle->Reset(); this->m_free.pop_front(); return particle; } - return new (std::nothrow) CSpriteParticle(vector3d(), -1); + return new (std::nothrow) CSpriteParticle(vector3d{0.0f, 0.0f, 0.0f}, -1); } }