mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-20 13:54:14 +01:00
Added MMIFACE_SH_HOOKMANAUTOGEN to SMM API
--HG-- branch : hookman_autogen extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/branches/hookman_autogen%40557
This commit is contained in:
parent
926a23d0bd
commit
c45ae8fd7b
@ -49,6 +49,7 @@
|
||||
|
||||
#define MMIFACE_SOURCEHOOK "ISourceHook" /**< ISourceHook Pointer */
|
||||
#define MMIFACE_PLMANAGER "IPluginManager" /**< SourceMM Plugin Functions */
|
||||
#define MMIFACE_SH_HOOKMANAUTOGEN "IHookManagerAutoGen" /**< SourceHook::IHookManagerAutoGen Pointer */
|
||||
#define IFACE_MAXNUM 999 /**< Maximum interface version */
|
||||
|
||||
namespace SourceMM
|
||||
|
@ -331,6 +331,11 @@
|
||||
RelativePath="..\..\..\sourcehook\sourcehook.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\sourcehook\sourcehook_hookmangen.cpp"
|
||||
>
|
||||
</File>
|
||||
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
|
@ -327,6 +327,10 @@
|
||||
RelativePath="..\..\..\sourcehook\sourcehook.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\sourcehook\sourcehook_hookmangen.cpp"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
|
@ -94,6 +94,7 @@ CreateInterfaceFn physics_factory = NULL;
|
||||
CreateInterfaceFn filesystem_factory = NULL;
|
||||
CGlobalVars *gpGlobals = NULL;
|
||||
CSourceHookImpl g_SourceHook;
|
||||
CHookManagerAutoGen g_SH_HookManagerAutoGen(&g_SourceHook);
|
||||
ISourceHook *g_SHPtr = &g_SourceHook;
|
||||
PluginId g_PLID = Pl_Console;
|
||||
META_RES last_meta_res;
|
||||
@ -1090,6 +1091,14 @@ void *MetamodSource::MetaFactory(const char *iface, int *ret, PluginId *id)
|
||||
}
|
||||
return static_cast<void *>(static_cast<ISmmPluginManager *>(&g_PluginMngr));
|
||||
}
|
||||
else if (strcmp(iface, MMIFACE_SH_HOOKMANAUTOGEN) == 0)
|
||||
{
|
||||
if (ret)
|
||||
{
|
||||
*ret = IFACE_OK;
|
||||
}
|
||||
return static_cast<void *>(static_cast<SourceHook::IHookManagerAutoGen *>(&g_SH_HookManagerAutoGen));
|
||||
}
|
||||
|
||||
CPluginManager::CPlugin *pl;
|
||||
List<IMetamodListener *>::iterator event;
|
||||
|
Loading…
x
Reference in New Issue
Block a user