diff -r dfa3b31cc042 -r 84948190c34b sourcemm/CSmmAPI.cpp --- a/sourcemm/CSmmAPI.cpp Thu Oct 20 14:37:47 2005 +0000 +++ b/sourcemm/CSmmAPI.cpp Thu Oct 20 14:52:49 2005 +0000 @@ -136,8 +136,11 @@ pl->m_Events.push_back(pListener); } -void *CSmmAPI::MetaFactory(const char *iface, int *_ret) +void *CSmmAPI::MetaFactory(const char *iface, int *_ret, PluginId *id) { + if (id) + *id = 0; + if (!iface) return NULL; @@ -170,6 +173,8 @@ { if (_ret) *_ret = ret; + if (id) + *id = pl->m_Id; return val; } }