mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 03:07:41 +00:00
Athena YAML refactor
This commit is contained in:
@@ -450,13 +450,12 @@ template struct ELSM<UniqueID64>;
|
||||
template <class IDType>
|
||||
bool ExtractELSM(PAKEntryReadStream& rs, const hecl::ProjectPath& outPath)
|
||||
{
|
||||
FILE* fp = hecl::Fopen(outPath.getAbsolutePath().c_str(), _S("w"));
|
||||
if (fp)
|
||||
athena::io::FileWriter writer(outPath.getAbsolutePath());
|
||||
if (writer.isOpen())
|
||||
{
|
||||
ELSM<IDType> elsm;
|
||||
elsm.read(rs);
|
||||
elsm.toYAMLFile(fp);
|
||||
fclose(fp);
|
||||
elsm.toYAMLStream(writer);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user