1.1 --- a/sourcemm/stub_mm/stub_mm.cpp Mon Aug 14 20:14:02 2006 +0000
1.2 +++ b/sourcemm/stub_mm/stub_mm.cpp Tue Aug 15 20:10:12 2006 +0000
1.3 @@ -23,20 +23,11 @@
1.4 RETURN_META(MRES_IGNORED);
1.5 }
1.6
1.7 -#define GET_V_IFACE(v_factory, v_var, v_type, v_name) \
1.8 - v_var = (v_type *)ismm->VInterfaceMatch(ismm->v_factory(), v_name); \
1.9 - if (!v_var) { \
1.10 - if (error && maxlen) { \
1.11 - snprintf(error, maxlen, "Could not find interface: %s", v_name); \
1.12 - } \
1.13 - return false; \
1.14 - }
1.15 -
1.16 bool StubPlugin::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen, bool late)
1.17 {
1.18 PLUGIN_SAVEVARS();
1.19
1.20 - GET_V_IFACE(serverFactory, m_ServerDll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
1.21 + GET_V_IFACE_ANY(serverFactory, m_ServerDll, IServerGameDLL, INTERFACEVERSION_SERVERGAMEDLL);
1.22
1.23 SH_ADD_HOOK_STATICFUNC(IServerGameDLL, ServerActivate, m_ServerDll, ServerActivate_handler, true);
1.24