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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user