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.
This commit is contained in:
parent
2e8af0bd1b
commit
3ce075ebca
1 changed files with 12 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue