diff -r 7e4acfe72046 -r fa485d2f25ed core/sourcemm_api.cpp --- a/core/sourcemm_api.cpp Tue Jan 16 20:45:13 2007 +0000 +++ b/core/sourcemm_api.cpp Wed Jan 17 03:01:38 2007 +0000 @@ -7,6 +7,7 @@ IVEngineServer *engine = NULL; IServerGameDLL *gamedll = NULL; IServerGameClients *serverClients = NULL; +ISmmPluginManager *g_pMMPlugins = NULL; PLUGIN_EXPOSE(SourceMod, g_SourceMod_Core); @@ -18,6 +19,15 @@ GET_V_IFACE_CURRENT(engineFactory, engine, IVEngineServer, INTERFACEVERSION_VENGINESERVER); GET_V_IFACE_CURRENT(serverFactory, serverClients, IServerGameClients, INTERFACEVERSION_SERVERGAMECLIENTS); + if ((g_pMMPlugins = (ISmmPluginManager *)g_SMAPI->MetaFactory(MMIFACE_PLMANAGER, NULL, NULL)) == NULL) + { + if (error) + { + snprintf(error, maxlen, "Unable to find interface %s", MMIFACE_PLMANAGER); + } + return false; + } + return g_SourceMod.InitializeSourceMod(error, maxlen, late); }