Recovered/ holds the code linked only into the standalone exe (scripts/exe/build_exe.py), outside the Clank source dirs: - jsoncons/ and nProtect/ moved from scripts/exe/; GameGuard stand-in follows main's renamed entry points. - GPak/PakAuxiliary.cpp: Extract (virtualised in every build; 02-19 jumps out at 0x0065861E) rebuilt from the open GRF Editor decoder, after the visible 02-19 prologue; inline key and kRO keys 1-4. Apply traps (unreachable in 02-19). - GGHash/GGHash.cpp: CGGHash::Load/Check/VerifyHash trap (RagHash.dat check unreachable in 02-19). The whole client links: 984 units, 0 unresolved.
31 lines
1.2 KiB
C++
31 lines
1.2 KiB
C++
// Stand-in for the nProtect GameGuard SDK, linked only into the standalone exe
|
|
// built by scripts/exe/build_exe.py. Clank never compiles this file.
|
|
//
|
|
// The original statically links the SDK (0x00E8A000-0x00E96000). The client
|
|
// reaches it through three entry points, called by CNProtectGameGuardMgr in
|
|
// Source/Security/NProtectGameGuardMgr.cpp. This file provides those three with
|
|
// the behaviour of a successful start-up, so the client follows the same path it
|
|
// takes when GameGuard initialises normally. No anti-cheat checks are performed
|
|
// and server GameGuard authentication requests are not answered.
|
|
|
|
namespace {
|
|
// NPGAMEMON_SUCCESS: CNProtectGameGuardMgr treats any other status as a
|
|
// start-up failure.
|
|
constexpr int kGameGuardSuccess = 0x755;
|
|
|
|
int(__stdcall* g_callback)(int, const int*) = nullptr;
|
|
}
|
|
|
|
// fn_25538 (0x00E929B0): SDK initialisation.
|
|
void PreInitNPGameMonA(const char*) {
|
|
}
|
|
|
|
// fn_25536 (0x00E92820): status of the last initialisation.
|
|
int InitNPGameMon() {
|
|
return kGameGuardSuccess;
|
|
}
|
|
|
|
// fn_25543 (0x00E92E90): registers the client's GameGuard message handler.
|
|
void SetCallbackToGameMon(int(__stdcall* callback)(int, const int*)) {
|
|
g_callback = callback;
|
|
}
|