mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
PAK : Only write meta data to model and texture data which require it.
This commit is contained in:
parent
b930e02fde
commit
1a9ae89eac
1 changed files with 20 additions and 0 deletions
|
@ -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 a new issue