mirror of https://github.com/AxioDL/metaforce.git
YAML update
This commit is contained in:
parent
df2adc10da
commit
a3db545b01
|
@ -55,6 +55,8 @@ ResExtractor PAKBridge::LookupExtractor(const PAK::Entry& entry)
|
||||||
return {TXTR::Extract, ".png"};
|
return {TXTR::Extract, ".png"};
|
||||||
case SBIG('CMDL'):
|
case SBIG('CMDL'):
|
||||||
return {CMDL::Extract, ".blend", 1};
|
return {CMDL::Extract, ".blend", 1};
|
||||||
|
case SBIG('MLVL'):
|
||||||
|
return {MLVL::Extract, ".yaml"};
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,16 @@ struct MLVL : BigYAML
|
||||||
|
|
||||||
Value<atUint32> layerNameOffsetCount;
|
Value<atUint32> layerNameOffsetCount;
|
||||||
Vector<atUint32, DNA_COUNT(layerNameOffsetCount)> layerNameOffsets;
|
Vector<atUint32, DNA_COUNT(layerNameOffsetCount)> layerNameOffsets;
|
||||||
|
|
||||||
|
static bool Extract(PAKEntryReadStream& rs, const HECL::ProjectPath& outPath)
|
||||||
|
{
|
||||||
|
MLVL mlvl;
|
||||||
|
mlvl.read(rs);
|
||||||
|
FILE* fp = HECL::Fopen(outPath.getAbsolutePath().c_str(), _S("wb"));
|
||||||
|
mlvl.toYAMLFile(fp);
|
||||||
|
fclose(fp);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue