Progress count fix

This commit is contained in:
Jack Andersen 2016-03-31 18:53:08 -10:00
parent 8fc0d57500
commit b175df5154
1 changed files with 4 additions and 0 deletions

View File

@ -453,15 +453,19 @@ bool PAKRouter<BRIDGETYPE>::extractResources(const BRIDGETYPE& pakBridge, bool f
if (extractor.weight != w) if (extractor.weight != w)
continue; continue;
/* This is used to ensure parallel extracts won't collide files */
if (precedenceSharesOnly) if (precedenceSharesOnly)
{ {
auto sharedSearch = m_sharedEntries.find(item->id); auto sharedSearch = m_sharedEntries.find(item->id);
if (sharedSearch != m_sharedEntries.cend()) if (sharedSearch != m_sharedEntries.cend())
{ {
if (sharedSearch->second.first != reinterpret_cast<intptr_t>(m_curBridgeIdx.get())) if (sharedSearch->second.first != reinterpret_cast<intptr_t>(m_curBridgeIdx.get()))
{
++count;
continue; continue;
} }
} }
}
std::string bestName = getBestEntryName(*item); std::string bestName = getBestEntryName(*item);
hecl::SystemStringView bestNameView(bestName); hecl::SystemStringView bestNameView(bestName);