diff --git a/File_Format_Library/FileFormats/DKCTF/PAK.cs b/File_Format_Library/FileFormats/DKCTF/PAK.cs index 04e75da8..90124207 100644 --- a/File_Format_Library/FileFormats/DKCTF/PAK.cs +++ b/File_Format_Library/FileFormats/DKCTF/PAK.cs @@ -180,6 +180,9 @@ namespace DKCTF { get { + if (!WriteMetaData) + return SubData; + List Data = new List(); 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;