1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-03-21 12:28:56 +01:00

1.2.4 will be a bug-fix-alicious update :o

Fixed bug where ISmmAPI::MetaFactory would return the wrong interface when trying to retrieve ISmmPluginManager.

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40238
This commit is contained in:
Scott Ehlert 2006-07-21 12:30:31 +00:00
parent 7c1b752c52
commit 0932fc5081
2 changed files with 5 additions and 3 deletions

View File

@ -145,15 +145,15 @@ void *CSmmAPI::MetaFactory(const char *iface, int *_ret, PluginId *id)
return NULL;
//first check ours... we get first chance!
if (strcmp(iface, MMIFACE_SOURCEHOOK)==0)
if (strcmp(iface, MMIFACE_SOURCEHOOK) == 0)
{
if (_ret)
*_ret = IFACE_OK;
return static_cast<void *>(static_cast<SourceHook::ISourceHook *>(&g_SourceHook));
} else if (strcmp(iface, MMIFACE_PLMANAGER)==0) {
} else if (strcmp(iface, MMIFACE_PLMANAGER) == 0) {
if (_ret)
*_ret = IFACE_OK;
return static_cast<void *>(static_cast<IConCommandBaseAccessor *>(&g_SMConVarAccessor));
return static_cast<void *>(static_cast<ISmmPluginManager *>(&g_PluginMngr));
}
CPluginManager::CPlugin *pl;

View File

@ -4,6 +4,8 @@
- Fixed bug where Metamod:Source could load the wrong GameDLL and/or load more than one
GameDLL. This issue occured in HL2 CTF, SourceForts, or any other mod that relied on
files from another mod directory.
- Fixed bug where ISmmAPI::MetaFactory would return the wrong interface when trying to
retrieve ISmmPluginManager.
- Fixed bug where returning false in Load() after adding a Metamod event listener or
hooking a function could cause a crash instead of rejecting the plugin.
- Fixed bug where trying to load Metamod:Source a second time as a SourceMM or Valve