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

Massive template-based DNA refactor

This commit is contained in:
Jack Andersen
2018-02-21 21:24:51 -10:00
parent b405f33ded
commit e4ff23c279
265 changed files with 3993 additions and 5773 deletions

View File

@@ -10,8 +10,8 @@ namespace DataSpec::DNAMP3
struct STRG : ISTRG
{
DECL_YAML
Delete expl;
AT_DECL_EXPLICIT_DNA_YAML
AT_DECL_DNAV
void _read(athena::io::IStreamReader& reader);
std::vector<std::pair<DNAFourCC, std::vector<std::string>>> langs;
std::unordered_map<DNAFourCC, std::vector<std::string>*> langMap;
@@ -66,7 +66,7 @@ struct STRG : ISTRG
{
std::unique_ptr<ISTRG> strg = LoadSTRG(rs);
athena::io::TransactionalFileWriter writer(outPath.getAbsolutePath());
strg->toYAMLStream(writer);
athena::io::ToYAMLStream(*strg, writer);
return true;
}
@@ -74,7 +74,7 @@ struct STRG : ISTRG
{
STRG strg;
athena::io::FileReader reader(inPath.getAbsolutePath());
strg.fromYAMLStream(reader);
athena::io::FromYAMLStream(strg, reader);
athena::io::TransactionalFileWriter ws(outPath.getAbsolutePath());
strg.write(ws);
return true;