Remove CPluginManager direct use of CPlugin::m_FakeNativesMissing.

This commit is contained in:
David Anderson 2015-09-19 17:41:04 -07:00
parent f27dbaf716
commit ae44a6540a
2 changed files with 6 additions and 2 deletions

View File

@ -1283,8 +1283,8 @@ bool CPluginManager::RunSecondPass(CPlugin *pPlugin, char *error, size_t maxleng
{ {
CPlugin *pOther = (*pl_iter); CPlugin *pOther = (*pl_iter);
if ((pOther->GetStatus() == Plugin_Error if ((pOther->GetStatus() == Plugin_Error
&& (pOther->m_FakeNativesMissing || pOther->m_LibraryMissing)) && (pOther->HasMissingFakeNatives() || pOther->m_LibraryMissing))
|| pOther->m_FakeNativesMissing) || pOther->HasMissingFakeNatives())
{ {
TryRefreshDependencies(pOther); TryRefreshDependencies(pOther);
} }

View File

@ -273,6 +273,10 @@ public:
void AddRequiredLib(const char *name); void AddRequiredLib(const char *name);
bool ForEachRequiredLib(ke::Lambda<bool(const char *)> callback); bool ForEachRequiredLib(ke::Lambda<bool(const char *)> callback);
bool HasMissingFakeNatives() const {
return m_FakeNativesMissing;
}
protected: protected:
bool ReadInfo(); bool ReadInfo();
void DependencyDropped(CPlugin *pOwner); void DependencyDropped(CPlugin *pOwner);