2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-04 12:35:52 +00:00

Progress count fix

This commit is contained in:
Jack Andersen 2016-03-31 18:53:08 -10:00
parent 8fc0d57500
commit b175df5154

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);