1
0
mirror of synced 2024-12-02 19:17:24 +01:00

PAK : Only write meta data to model and texture data which require it.

This commit is contained in:
KillzXGaming 2022-10-28 20:03:21 -04:00
parent b930e02fde
commit 1a9ae89eac

View File

@ -180,6 +180,9 @@ namespace DKCTF
{ {
get get
{ {
if (!WriteMetaData)
return SubData;
List<byte[]> Data = new List<byte[]>(); List<byte[]> Data = new List<byte[]>();
using (var reader = new FileReader(SubData, true)) using (var reader = new FileReader(SubData, true))
@ -206,6 +209,23 @@ namespace DKCTF
} }
} }
public bool WriteMetaData
{
get
{
switch (AssetEntry.Type)
{
case "CMDL":
case "SMDL":
case "WMDL":
case "TXTR":
return true;
default:
return false;
}
}
}
public override IFileFormat OpenFile() public override IFileFormat OpenFile()
{ {
var pak = this.ParentArchive; var pak = this.ParentArchive;