Decompile fn_08209 (CNProtectGameGuardMgr::Initialize)
Batch #13972 by codeplay: 0 byte-identical, 1 confirmed by peer review. - fn_08209 CNProtectGameGuardMgr::Initialize: logic confirmed by peer review Peer-reviewed-by: Yommy, aDw, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
efaee56ef5
commit
b171368e54
2 changed files with 5 additions and 5 deletions
|
|
@ -233,14 +233,14 @@ int __stdcall GameGuardCallback(int code, const int* packet) {
|
|||
|
||||
// OFFSET: 0x0076C9D0
|
||||
// FUNCTION: fn_08209
|
||||
int CNProtectGameGuardMgr::Initialize() {
|
||||
bool CNProtectGameGuardMgr::Initialize() {
|
||||
void* created = ::operator new(1, std::nothrow);
|
||||
if (created != nullptr) {
|
||||
PreInitNPGameMonA(GameName());
|
||||
}
|
||||
this->m_gameLib = created;
|
||||
if (created == nullptr) {
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
const int status = InitNPGameMon();
|
||||
|
|
@ -259,11 +259,11 @@ int CNProtectGameGuardMgr::Initialize() {
|
|||
const char tagSource[] = {'\xF6', '\x41', '\x9F', '\xAF', '\x7A', '\x91', '\xC9', '\x08', '\xF2', '\x31'};
|
||||
if (std::strstr(g_commandLine, DecryptName<0x4F99DF03C3EF31B7ULL>(tagSource)) == nullptr) {
|
||||
MessageBoxA(hWnd, message, title, 0);
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
WriteMyLog(g_nprotectSource, 0x284, title);
|
||||
}
|
||||
|
||||
SetCallbackToGameMon(GameGuardCallback);
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public:
|
|||
int HasError();
|
||||
std::string ErrorMessage();
|
||||
void SetHwnd(HWND window);
|
||||
int Initialize();
|
||||
bool Initialize();
|
||||
void IncrementCounter();
|
||||
void SetError(const char* file, int line, std::string message);
|
||||
void Send(const char* text);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue