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

Work on cooking features

This commit is contained in:
Jack Andersen
2015-09-30 14:40:21 -10:00
parent 5f68a2a992
commit 1f9c8811d2
21 changed files with 152 additions and 27 deletions

View File

@@ -5,6 +5,9 @@
#include "SpecBase.hpp"
#include "DNAMP1/DNAMP1.hpp"
#include "DNAMP1/MLVL.hpp"
#include "DNAMP1/STRG.hpp"
namespace Retro
{
@@ -30,7 +33,7 @@ struct SpecMP1 : SpecBase
SpecMP1(HECL::Database::Project& project)
: SpecBase(project),
m_workPath(project.getProjectRootPath(), _S("MP1")),
m_workPath(project.getProjectWorkingPath(), _S("MP1")),
m_cookPath(project.getProjectCookedPath(SpecEntMP1), _S("MP1")),
m_pakRouter(*this, m_workPath, m_cookPath) {}
@@ -259,6 +262,15 @@ struct SpecMP1 : SpecBase
return true;
}
bool validateYAMLDNAType(FILE* fp) const
{
if (BigYAML::ValidateFromYAMLFile<DNAMP1::MLVL>(fp))
return true;
if (BigYAML::ValidateFromYAMLFile<DNAMP1::STRG>(fp))
return true;
return false;
}
};
HECL::Database::DataSpecEntry SpecEntMP1 =