mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-26 19:54:14 +01:00
Fixed problem on OBV where alternately loaded plugins (CreateInterface_MMS) could be incorrectly told they were on the OB engine (bug 4491, r=dvander).
This only happened when there was more than one plugin that loaded this way. And the first plugin to load had to fail on OBV first so that OB could be tried. It was being permanently set to OB for future plugin loads and this caused problems.
This commit is contained in:
parent
3c18a34078
commit
05d2af1eef
@ -465,6 +465,7 @@ CPluginManager::CPlugin *CPluginManager::_Load(const char *file, PluginId source
|
|||||||
{
|
{
|
||||||
GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOX;
|
GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOX;
|
||||||
pl->m_API = fnLoad(&GlobVersionInfo, &info);
|
pl->m_API = fnLoad(&GlobVersionInfo, &info);
|
||||||
|
GlobVersionInfo.source_engine = SOURCE_ENGINE_ORANGEBOXVALVE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
pl->m_UnloadFn = (METAMOD_FN_UNLOAD)dlsym(pl->m_Lib, "UnloadInterface_MMS");
|
pl->m_UnloadFn = (METAMOD_FN_UNLOAD)dlsym(pl->m_Lib, "UnloadInterface_MMS");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user