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

Weighted extractor, shared across games as template

This commit is contained in:
Jack Andersen
2015-07-29 10:45:47 -10:00
parent 28985165ff
commit 5075cb6dc4
10 changed files with 79 additions and 162 deletions

View File

@@ -238,14 +238,12 @@ struct SpecMP1 : SpecBase
prog = 0;
for (DNAMP1::PAKBridge& pak : m_paks)
{
m_pakRouter.enterPAKBridge(pak);
const std::string& name = pak.getName();
HECL::SystemStringView sysName(name);
progress(sysName.sys_str().c_str(), compIdx, 0.0);
pak.extractResources(m_pakRouter, force,
[&progress, &sysName, &compIdx](float factor)
m_pakRouter.extractResources(pak, force,
[&progress, &sysName, &compIdx](float factor)
{
progress(sysName.sys_str().c_str(), compIdx, factor);
});