From e2f6489843b72ee48c9af862daaab78cdc1fd66d Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 13:02:27 +0000 Subject: [PATCH] Decompile 2 functions in Source/Contents/Effects/EffectMemoryMgr.cpp Batch #12292 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_19272 CEffectMemoryMgr::Init: byte-identical - fn_19273 CreateEffectMemoryMgr: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Contents/Effects/EffectMemoryMgr.cpp | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Source/Contents/Effects/EffectMemoryMgr.cpp b/Source/Contents/Effects/EffectMemoryMgr.cpp index c48fbc15..7da90a59 100644 --- a/Source/Contents/Effects/EffectMemoryMgr.cpp +++ b/Source/Contents/Effects/EffectMemoryMgr.cpp @@ -7,7 +7,6 @@ #include #include #include - #include namespace { @@ -35,7 +34,8 @@ class CEffectMemoryPool : public IEffectMemoryPool { class CEffectMemoryMgr { public: // INLINED - CEffectMemoryMgr() : m_initialized(false) { + CEffectMemoryMgr() { + this->m_initialized = false; if (this->Init()) { this->m_initialized = true; } @@ -132,25 +132,25 @@ bool CEffectMemoryMgr::Init() { return false; } - this->m_pools.push_back(new CEffectMemoryPool()); + this->m_pools.push_back(new CEffectMemoryPool); if (this->m_pools.size() != 1) { MessageBoxA(NULL, "Input sequence is incorrect.", "CEffectMemoryMgr error", 0); return false; } - this->m_pools.push_back(new CEffectMemoryPool()); + this->m_pools.push_back(new CEffectMemoryPool); if (this->m_pools.size() != 2) { MessageBoxA(NULL, "Input sequence is incorrect.", "CEffectMemoryMgr error", 0); return false; } - this->m_pools.push_back(new CEffectMemoryPool()); + this->m_pools.push_back(new CEffectMemoryPool); if (this->m_pools.size() != 3) { MessageBoxA(NULL, "Input sequence is incorrect.", "CEffectMemoryMgr error", 0); return false; } - this->m_pools.push_back(new CEffectMemoryPool()); + this->m_pools.push_back(new CEffectMemoryPool); return true; } @@ -169,13 +169,13 @@ bool CreateEffectMemoryMgr() { return false; } - if (mgr->m_initialized) { - return true; + if (!mgr->m_initialized) { + delete mgr; + g_effectMemoryMgr = NULL; + return false; } - delete mgr; - g_effectMemoryMgr = NULL; - return false; + return true; } namespace {