2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 21:07:42 +00:00

Full PAK Indexing even for partial extracts

This commit is contained in:
Jack Andersen
2015-09-27 15:13:27 -10:00
parent 3540a3e19a
commit 739c31d87c
10 changed files with 78 additions and 72 deletions

View File

@@ -87,8 +87,7 @@ struct SpecMP2 : SpecBase
}
}
if (good)
m_paks.emplace_back(m_project, child);
m_paks.emplace_back(m_project, child, good);
}
}
@@ -104,6 +103,8 @@ struct SpecMP2 : SpecBase
/* Assemble extract report */
for (const std::pair<std::string, DNAMP2::PAKBridge*>& item : m_orderedPaks)
{
if (!item.second->m_doExtract)
continue;
rep.childOpts.emplace_back();
ExtractReport& childRep = rep.childOpts.back();
HECL::SystemStringView nameView(item.first);
@@ -229,6 +230,9 @@ struct SpecMP2 : SpecBase
for (std::pair<std::string, DNAMP2::PAKBridge*> pair : m_orderedPaks)
{
DNAMP2::PAKBridge& pak = *pair.second;
if (!pak.m_doExtract)
continue;
const std::string& name = pak.getName();
HECL::SystemStringView sysName(name);