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

AGSC/ATBL/CSNG extracting and cooking

This commit is contained in:
Jack Andersen
2016-09-18 13:47:48 -10:00
parent d2e4049c3a
commit b9baa84b1d
65 changed files with 1004 additions and 338 deletions

View File

@@ -73,7 +73,7 @@ bool MREA::Extract(const SpecBase& dataSpec,
/* We're not in a world pak, so lets keep the original name */
mreaPath = outPath;
if (!force && mreaPath.getPathType() == hecl::ProjectPath::Type::File)
if (!force && mreaPath.isFile())
return true;
/* Do extract */
@@ -271,7 +271,7 @@ bool MREA::PCCook(const hecl::ProjectPath& outPath,
for (const hecl::DirectoryEnumerator::Entry& ent : dEnum)
{
hecl::ProjectPath layerScriptPath(areaDirPath, ent.m_name + _S("/objects.yaml"));
if (layerScriptPath.getPathType() == hecl::ProjectPath::Type::File)
if (layerScriptPath.isFile())
layerScriptPaths.push_back(std::move(layerScriptPath));
}
}