From 3ce075ebca3d5b3a71dafe7fb931135db9aa732c Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 00:24:02 +0000 Subject: [PATCH] Decompile fn_08188 (CGGHashMgr::CGGHashMgr) Batch #17538 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_08188 CGGHashMgr::CGGHashMgr: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Utility/Hash/GGHashMgr.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Source/Utility/Hash/GGHashMgr.cpp b/Source/Utility/Hash/GGHashMgr.cpp index 84f510bd6..e2143e349 100644 --- a/Source/Utility/Hash/GGHashMgr.cpp +++ b/Source/Utility/Hash/GGHashMgr.cpp @@ -8,7 +8,9 @@ CGGHashMgr* g_ggHashMgr = nullptr; // OFFSET: 0x0076B590 // FUNCTION: fn_08188 -CGGHashMgr::CGGHashMgr() : m_initialized(false), m_hash(nullptr) { +CGGHashMgr::CGGHashMgr() { + this->m_hash = nullptr; + this->m_initialized = false; InitializeCriticalSection(&this->m_lock); this->m_hash = new (std::nothrow) CGGHash; @@ -16,7 +18,15 @@ CGGHashMgr::CGGHashMgr() : m_initialized(false), m_hash(nullptr) { bool valid; { std::string filename("RagHash.dat"); - valid = this->m_hash->Load(filename.c_str()) && this->m_hash->GetSize() >= 2 && this->m_hash->Check() == 1; + if (!this->m_hash->Load(filename.c_str())) { + return; + } + + if (this->m_hash->GetSize() < 2) { + return; + } + + valid = this->m_hash->Check() == 1; } if (valid) {