1.1 --- a/metamod/dllapi.cpp Mon Feb 06 12:35:59 2006 +0000
1.2 +++ b/metamod/dllapi.cpp Sun Feb 19 18:55:47 2006 +0000
1.3 @@ -340,7 +340,7 @@
1.4
1.5 // From SDK dlls/cbase.cpp:
1.6 // "(wd)" indicates my comments on the functions
1.7 -static DLL_FUNCTIONS gFunctionTable =
1.8 +DLL_FUNCTIONS gFunctionTable =
1.9 {
1.10 mm_GameDLLInit, //! pfnGameInit() Initialize the game (one-time call after loading of game .dll)
1.11 mm_DispatchSpawn, //! pfnSpawn()
1.12 @@ -404,6 +404,8 @@
1.13 mm_AllowLagCompensation, //! pfnAllowLagCompensation() (wd) SDK2
1.14 };
1.15
1.16 +DLL_FUNCTIONS *pHookedDllFunctions = &gFunctionTable;
1.17 +
1.18 // It's not clear what the difference is between GetAPI and GetAPI2; they
1.19 // both appear to return the exact same function table.
1.20 //
1.21 @@ -477,6 +479,8 @@
1.22 //! the cvar requested and the value of that cvar.
1.23 };
1.24
1.25 +NEW_DLL_FUNCTIONS *pHookedNewDllFunctions = &gNewFunctionTable;
1.26 +
1.27 C_DLLEXPORT int GetNewDLLFunctions(NEW_DLL_FUNCTIONS *pNewFunctionTable, int *interfaceVersion)
1.28 {
1.29 META_DEBUG(6, ("called: GetNewDLLFunctions; version=%d", *interfaceVersion));