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

Change how GIT revision information is handled

Add Cook to SCAN
Prelim CCharAnimTime
This commit is contained in:
2016-01-04 16:48:10 -08:00
parent 769a20d9dc
commit 106cb940d3
3 changed files with 71 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
#ifndef _DNAMP1_SCAN_HPP_
#define _DNAMP1_SCAN_HPP_
#include <Athena/FileWriter.hpp>
#include "../DNACommon/DNACommon.hpp"
#include "DNAMP1.hpp"
@@ -195,6 +196,17 @@ struct SCAN : BigYAML
return true;
}
static bool Cook(const HECL::ProjectPath& inPath, const HECL::ProjectPath& outPath)
{
SCAN scan;
FILE* fp = HECL::Fopen(inPath.getAbsolutePath().c_str(), _S("rb"));
scan.fromYAMLFile(fp);
fclose(fp);
Athena::io::FileWriter ws(outPath.getAbsolutePath());
scan.write(ws);
return true;
}
static void Name(const SpecBase& dataSpec,
PAKEntryReadStream& rs,
PAKRouter<PAKBridge>& pakRouter,