sourcemm/metamod.cpp
branchhookman_autogen
changeset 457 da561f9002f2
parent 408 a0f99231cf3b
child 481 5a2e34651450
     1.1 --- a/sourcemm/metamod.cpp	Sat Nov 10 16:32:16 2007 +0000
     1.2 +++ b/sourcemm/metamod.cpp	Sat Nov 10 16:42:28 2007 +0000
     1.3 @@ -94,6 +94,7 @@
     1.4  CreateInterfaceFn filesystem_factory = NULL;
     1.5  CGlobalVars *gpGlobals = NULL;
     1.6  CSourceHookImpl g_SourceHook;
     1.7 +CHookManagerAutoGen g_SH_HookManagerAutoGen(&g_SourceHook);
     1.8  ISourceHook *g_SHPtr = &g_SourceHook;
     1.9  PluginId g_PLID = Pl_Console;
    1.10  META_RES last_meta_res;
    1.11 @@ -1090,6 +1091,14 @@
    1.12  		}
    1.13  		return static_cast<void *>(static_cast<ISmmPluginManager *>(&g_PluginMngr));
    1.14  	}
    1.15 +	else if (strcmp(iface, MMIFACE_SH_HOOKMANAUTOGEN) == 0)
    1.16 +	{
    1.17 +		if (ret)
    1.18 +		{
    1.19 +			*ret = IFACE_OK;
    1.20 +		}
    1.21 +		return static_cast<void *>(static_cast<SourceHook::IHookManagerAutoGen *>(&g_SH_HookManagerAutoGen));
    1.22 +	}
    1.23  
    1.24  	CPluginManager::CPlugin *pl;
    1.25  	List<IMetamodListener *>::iterator event;