PAK : Only write meta data to model and texture data which require it.
This commit is contained in:
parent
b930e02fde
commit
1a9ae89eac
@ -180,6 +180,9 @@ namespace DKCTF
|
||||
{
|
||||
get
|
||||
{
|
||||
if (!WriteMetaData)
|
||||
return SubData;
|
||||
|
||||
List<byte[]> Data = new List<byte[]>();
|
||||
|
||||
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()
|
||||
{
|
||||
var pak = this.ParentArchive;
|
||||
|
Loading…
Reference in New Issue
Block a user