Decompile 2 functions in Source/Utility/GGHash.cpp, Source/Utility/GGHash.h

Batch #1128 by eAthena: 2 byte-identical, 0 confirmed by peer review.

- fn_00113 CGGHash::GetSize: byte-identical
- fn_00114 CGGHash::GetError: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/Utility/GGHash.cpp
This commit is contained in:
ragnarok-clanker 2026-10-27 20:09:58 +00:00
commit ed6851d07c
3 changed files with 53 additions and 0 deletions

17
Source/Utility/GGHash.cpp Normal file
View file

@ -0,0 +1,17 @@
#include "Utility/GGHash.h"
// OFFSET: 0x004012B0
// OFFSET: 0x00401870
// FUNCTION: fn_00113
DWORD CGGHash::GetSize() const {
return this->m_size;
}
// OFFSET: 0x00401880
// FUNCTION: fn_00114
DWORD CGGHash::GetError() const {
return this->m_error;
}
// OFFSET: 0x00401AC0

35
Source/Utility/GGHash.h Normal file
View file

@ -0,0 +1,35 @@
#ifndef RAGNAROK_SOURCE_UTILITY_GGHASH_H
#define RAGNAROK_SOURCE_UTILITY_GGHASH_H
#include <cstdlib>
#include <windows.h>
class CGGHash {
public:
CGGHash();
virtual ~CGGHash();
DWORD GetSize() const;
DWORD GetError() const;
protected:
// INLINED
void Clear() {
this->m_error = 0;
this->m_size = 0;
if (this->m_data) {
std::free(this->m_data);
this->m_data = nullptr;
}
}
/* 0004 */ DWORD m_error;
/* 0008 */ DWORD m_size;
/* 000C */ BYTE* m_data;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CGGHash) == 16);
#endif
#endif

View file

@ -629,6 +629,7 @@
"Source/Utility/Cipher/Rijndael.cpp": 0,
"Source/Utility/Cipher/XorBytes.cpp": 0,
"Source/Utility/FileSignatureVerifier.cpp": 0,
"Source/Utility/GGHash.cpp": 0,
"Source/Utility/GuidParse.cpp": 0,
"Source/Utility/Hash/MD5.cpp": 0,
"Source/Utility/Hash/XxHash32.cpp": 0,