Batch #18338 by ragnarok-clanker: no function's compiled code changes; checked with 433 compiled unit(s), including every includer of Source/Client/Application/ApplicationWindow.h, Source/Client/Mode/CGameMode.h, Source/Client/Session/Session.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Map/MapSkyMgr.h, Source/Contents/Messenger/ClientMessenger.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Sound/SoundConfiguration.h, Source/Render/DX7/RenderSystemDX7.h, Source/Render/Device/DisplayMode.h, Source/Resource/Json/JsonCppLoader.h, Source/Security/NProtectGameGuardMgr.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/Text/TextWrapping.h, Source/Contents/Actors/Resources/BodyResources.h, Source/Resource/Json/JsonCppLoaderExternal.h, Source/Resource/Json/JsonCppLoaderParsing.h, Source/Security/NProtectGameMon.h.
63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
#ifndef RAGNAROK_SOURCE_SECURITY_NPROTECTGAMEGUARDMGR_H
|
|
#define RAGNAROK_SOURCE_SECURITY_NPROTECTGAMEGUARDMGR_H
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <windows.h>
|
|
|
|
// VTABLE: vt_00506
|
|
class CNProtectGameGuardMgr {
|
|
public:
|
|
// VTABLE: vt_00505
|
|
class lcCSAuthToken {
|
|
public:
|
|
// INLINED
|
|
lcCSAuthToken(int id, const std::vector<unsigned char>& bytes) : id(id), bytes(bytes) {
|
|
}
|
|
|
|
virtual ~lcCSAuthToken() = default;
|
|
|
|
/* 0004 */ int id;
|
|
/* 0008 */ std::vector<unsigned char> bytes;
|
|
};
|
|
|
|
static int Create();
|
|
static void Destroy();
|
|
static const char* GameName();
|
|
|
|
virtual ~CNProtectGameGuardMgr();
|
|
|
|
/* 0004 */ bool m_initialized;
|
|
/* 0008 */ unsigned int padding_0008;
|
|
/* 000C */ void* m_gameLib;
|
|
/* 0010 */ bool m_hasError;
|
|
/* 0014 */ std::string m_errorMessage;
|
|
/* 002C */ CRITICAL_SECTION m_lock;
|
|
/* 0044 */ std::vector<lcCSAuthToken> m_tokens;
|
|
|
|
void ProcessAuth(int first, int second);
|
|
void Stop();
|
|
void Tick();
|
|
int HasError();
|
|
std::string ErrorMessage();
|
|
void SetHwnd(HWND window);
|
|
bool Initialize();
|
|
void IncrementCounter();
|
|
void SetError(const char* file, int line, std::string message);
|
|
void Send(const char* text);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(offsetof(CNProtectGameGuardMgr, m_errorMessage) == 0x14);
|
|
static_assert(offsetof(CNProtectGameGuardMgr, m_lock) == 0x2C);
|
|
static_assert(offsetof(CNProtectGameGuardMgr, m_tokens) == 0x44);
|
|
static_assert(sizeof(CNProtectGameGuardMgr::lcCSAuthToken) == 0x14);
|
|
static_assert(sizeof(CNProtectGameGuardMgr) == 0x50);
|
|
#endif
|
|
|
|
extern CNProtectGameGuardMgr* g_nProtectGameGuardMgr;
|
|
|
|
int __stdcall GameGuardCallback(int code, const int* packet);
|
|
|
|
#endif
|