[Main]: Remove bugged code. (#640)

This commit is contained in:
Edo 2022-12-14 11:26:04 +01:00 committed by GitHub
parent f91fa0d0b2
commit 873f54c7a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ BOOL APIENTRY DllMain(HINSTANCE /*hinstDLL*/, DWORD fdwReason, LPVOID /*lpvReser
MessageBoxA(nullptr,
"Failed to load game binary.\n"
"You did not install the iw4x-rawfiles!\n"
"Please use the XLabs launcher to run the game. For support please visit https://xlabs.dev/support_iw4x_client",
"Please use the XLabs launcher to run the game. For support, please visit https://xlabs.dev/support_iw4x_client",
"ERROR",
MB_ICONERROR
);
@ -72,10 +72,8 @@ BOOL APIENTRY DllMain(HINSTANCE /*hinstDLL*/, DWORD fdwReason, LPVOID /*lpvReser
}
#endif
#ifndef DEBUG_BINARY_CHECK
// Install entry point hook
Utils::Hook(0x6BAC0F, Main::EntryPoint, HOOK_JUMP).install()->quick();
#endif
}
else if (fdwReason == DLL_PROCESS_DETACH)
{