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

STRG cooking bug fixes

This commit is contained in:
Jack Andersen
2017-01-26 16:22:52 -10:00
parent bcc524e084
commit 3a3298d48e
10 changed files with 47 additions and 30 deletions

View File

@@ -68,7 +68,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;
}
@@ -78,7 +78,7 @@ 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;
}