rodecomp/Source/Utility/GGHashMgr.h
ragnarok-clanker a6ba514213 Decompile 6 functions in Source/Utility/GGHashMgr.cpp, Source/Utility/GGHashMgr.h
Batch #3586 by Yommy: 4 byte-identical, 2 confirmed by peer review.

- fn_08188 CGGHashMgr::CGGHashMgr: logic confirmed by peer review
- fn_08190 CGGHashMgr::IsValid: byte-identical
- fn_08191 CGGHashMgr::VerifyFile: byte-identical
- fn_08193 CGGHashMgr::VerifyBuffer: byte-identical
- fn_08195 CGGHashMgr::VerifyPendingFiles: logic confirmed by peer review
- fn_08196 CGGHashMgr::Create: byte-identical

Peer-reviewed-by: eAthena, meitogi, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-29 22:49:44 +00:00

33 lines
686 B
C++

#ifndef RAGNAROK_SOURCE_UTILITY_GGHASHMGR_H
#define RAGNAROK_SOURCE_UTILITY_GGHASHMGR_H
#include "Utility/GGHash.h"
#include <windows.h>
// VTABLE: vt_00504
class CGGHashMgr {
public:
CGGHashMgr();
virtual ~CGGHashMgr();
static int Create();
static void Destroy();
int IsValid();
void VerifyFile(const char* filename);
void VerifyBuffer(const char* name, const unsigned char* buf, unsigned int size);
void VerifyPendingFiles();
/* 0004 */ bool m_initialized;
/* 0008 */ CGGHash* m_hash;
/* 000C */ CRITICAL_SECTION m_lock;
};
extern CGGHashMgr* g_ggHashMgr;
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CGGHashMgr) == 0x24);
#endif
#endif