mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-18 00:19:32 +00:00
Added class for Detour. It also detours the LoadLibrary function and thus has no problems if the game unloads the DX library and load it back again later.
Added some debug comments if logging mode is enabled.
This commit is contained in:
@@ -102,6 +102,7 @@ void InitInstance(HINSTANCE hModule)
|
||||
|
||||
gl_TextureServer = new uMod_TextureServer(game); //create the server which listen on the pipe and prepare the update for the texture clients
|
||||
|
||||
GlobalDetour.Init();
|
||||
#ifdef DEF_USE_DX9
|
||||
InitDX9();
|
||||
#endif
|
||||
@@ -146,6 +147,7 @@ void ExitInstance()
|
||||
ExitDX10();
|
||||
#endif
|
||||
|
||||
GlobalDetour.Exit();
|
||||
CloseMessage();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user