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:
code@koerner-de.net
2013-07-30 17:19:44 +00:00
parent 601c8c1504
commit c23eda8db1
17 changed files with 793 additions and 160 deletions
+2
View File
@@ -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();
}