mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 17:47:43 +00:00
STRG cooking bug fixes
This commit is contained in:
@@ -62,7 +62,7 @@ struct STRG : ISTRG
|
||||
{
|
||||
STRG strg;
|
||||
strg.read(rs);
|
||||
athena::io::FileWriter writer(outPath.getAbsolutePath());
|
||||
athena::io::TransactionalFileWriter writer(outPath.getAbsolutePath());
|
||||
strg.toYAMLStream(writer);
|
||||
return true;
|
||||
}
|
||||
@@ -72,14 +72,14 @@ struct STRG : ISTRG
|
||||
STRG strg;
|
||||
athena::io::FileReader reader(inPath.getAbsolutePath());
|
||||
strg.fromYAMLStream(reader);
|
||||
athena::io::FileWriter ws(outPath.getAbsolutePath());
|
||||
athena::io::TransactionalFileWriter ws(outPath.getAbsolutePath());
|
||||
strg.write(ws);
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool Cook(const STRG& strg, const hecl::ProjectPath& outPath)
|
||||
{
|
||||
athena::io::FileWriter ws(outPath.getAbsolutePath());
|
||||
athena::io::TransactionalFileWriter ws(outPath.getAbsolutePath());
|
||||
strg.write(ws);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user