Skip to content

Commit c743be6

Browse files
committed
- Replaced DynDetours with DynamicHooks
- Fixed overriding functions with void as return type - Changed DC_SIGCHAR_BOOL to 'b' (same for DynamicHooks)
1 parent 012b50e commit c743be6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+583
-17588
lines changed

src/core/core/sp_main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
#include "edict.h"
5353
#include "convar.h"
5454

55+
#include "DynamicHooks.h"
56+
extern DynamicHooks::CHookManager* g_pHookMngr;
57+
5558
//---------------------------------------------------------------------------------
5659
// Disable warnings.
5760
//---------------------------------------------------------------------------------
@@ -241,6 +244,8 @@ void CSourcePython::Unload( void )
241244
DisconnectTier2Libraries( );
242245
DisconnectTier1Libraries( );
243246
#endif
247+
248+
g_pHookMngr->UnhookAllFunctions();
244249
}
245250

246251
//---------------------------------------------------------------------------------

0 commit comments

Comments
 (0)