From 5c82095e8101d16b13a213d7e2a2061104fce2da Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 24 Mar 2004 01:10:38 +0000 Subject: [PATCH] removed useless hook --- dlls/engine/meta_api.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/dlls/engine/meta_api.cpp b/dlls/engine/meta_api.cpp index d68ca549..0d3be361 100755 --- a/dlls/engine/meta_api.cpp +++ b/dlls/engine/meta_api.cpp @@ -3250,7 +3250,6 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m gpMetaGlobals=pMGlobals; gMetaFunctionTable.pfnGetEntityAPI2 = GetEntityAPI2; - gMetaFunctionTable.pfnGetEntityAPI2_Post = GetEntityAPI2_Post; gMetaFunctionTable.pfnGetEngineFunctions = GetEngineFunctions; memcpy(pFunctionTable, &gMetaFunctionTable, sizeof(META_FUNCTIONS)); @@ -3258,11 +3257,8 @@ C_DLLEXPORT int Meta_Attach(PLUG_LOADTIME now, META_FUNCTIONS *pFunctionTable, m gpGamedllFuncs=pGamedllFuncs; return(TRUE); - } - - C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason) { if(now > Plugin_info.unloadable && reason != PNL_CMD_FORCED) { @@ -3275,8 +3271,6 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason) { } - - #ifdef __linux__ C_DLLEXPORT void GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals ) { #else @@ -3369,23 +3363,6 @@ C_DLLEXPORT int GetEntityAPI2_Post( DLL_FUNCTIONS *pFunctionTable, int *interfac return(TRUE); } -enginefuncs_t meta_engfuncs_post; - -C_DLLEXPORT int GetEngineFunctions_Post(enginefuncs_t *pengfuncsFromEngine, int *interfaceVersion ) { - - - if(*interfaceVersion!=ENGINE_INTERFACE_VERSION) { - LOG_ERROR(PLID, "GetEngineFunctions_Post version mismatch; requested=%d ours=%d", *interfaceVersion, ENGINE_INTERFACE_VERSION); - *interfaceVersion = ENGINE_INTERFACE_VERSION; - return(FALSE); - - } - memcpy(pengfuncsFromEngine, &meta_engfuncs_post, sizeof(enginefuncs_t)); - - return(TRUE); - -} - C_DLLEXPORT int AMX_Query(module_info_s** info) { *info = &module_info;