mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Fix #15: ignore the dependence of hooks for hl.exe
This commit is contained in:
parent
ed19a39b5b
commit
c0df05d418
@ -35,14 +35,17 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
if (fdwReason == DLL_PROCESS_ATTACH)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
g_ReGameDLLRuntimeConfig.parseFromCommandLine(GetCommandLineA());
|
||||
|
||||
#ifdef _WIN32
|
||||
Module hlds_exe;
|
||||
if (!FindModuleByName("hlds.exe", &hlds_exe))
|
||||
return (FALSE);
|
||||
if (!GetModuleHandle("hl.exe"))
|
||||
{
|
||||
if (!FindModuleByName("hlds.exe", &hlds_exe))
|
||||
return (FALSE);
|
||||
|
||||
TestSuite_Init(NULL, &hlds_exe, NULL);
|
||||
TestSuite_Init(NULL, &hlds_exe, NULL);
|
||||
}
|
||||
#endif // _WIN32
|
||||
|
||||
}
|
||||
@ -50,6 +53,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user