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

redundant save removal, better extract reporting

This commit is contained in:
Jack Andersen
2015-09-02 15:45:15 -10:00
parent 5951b60e0a
commit 6d13e83278
11 changed files with 28 additions and 21 deletions

View File

@@ -27,6 +27,7 @@ bool ReadANCSToBlender(HECL::BlenderConnection& conn,
PAKRouter& pakRouter,
const typename PAKRouter::EntryType& entry,
const SpecBase& dataspec,
std::function<void(const HECL::SystemChar*)> fileChanged,
bool force=false)
{
/* Extract character CMDL/CSKR first */
@@ -44,6 +45,8 @@ bool ReadANCSToBlender(HECL::BlenderConnection& conn,
if (!conn.createBlend(cmdlPath.getAbsolutePath()))
return false;
fileChanged(pakRouter.getBestEntryName(*cmdlE).c_str());
typename ANCSDNA::CSKRType cskr;
pakRouter.lookupAndReadDNA(info.cskr, cskr);
typename ANCSDNA::CINFType cinf;
@@ -60,6 +63,8 @@ bool ReadANCSToBlender(HECL::BlenderConnection& conn,
}
}
fileChanged(pakRouter.getBestEntryName(entry).c_str());
/* Establish ANCS blend */
if (!conn.createBlend(outPath.getAbsolutePath()))
return false;