diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index dc4a7bfd..a24549a2 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/FileFormats/Archives/SARC_OLD.cs b/Switch_FileFormatsMain/FileFormats/Archives/SARC_OLD.cs index 6c776659..225bfec0 100644 --- a/Switch_FileFormatsMain/FileFormats/Archives/SARC_OLD.cs +++ b/Switch_FileFormatsMain/FileFormats/Archives/SARC_OLD.cs @@ -169,6 +169,9 @@ namespace FirstPlugin public void Unload() { + foreach (var file in Files) + file.FileData = null; + Nodes.Clear(); } diff --git a/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs b/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs index 68741b8c..e1f359f7 100644 --- a/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs +++ b/Switch_FileFormatsMain/FileFormats/Texture/BNTX.cs @@ -144,7 +144,7 @@ namespace FirstPlugin SearchBinary(archiveFile, Folder, Extension); } } - /* if (FileFormat is BNTX) + if (FileFormat is BNTX) { foreach (var texture in ((BNTX)FileFormat).Textures.Values) texture.Export(Path.Combine(Folder, $"{FileFormat.FileName}_{texture.Text}{Extension}")); @@ -170,7 +170,7 @@ namespace FirstPlugin bntx.Unload(); } - }*/ + } FileFormat.Unload(); GC.Collect(); diff --git a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache index 841f7460..79a512c3 100644 Binary files a/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache and b/Switch_FileFormatsMain/obj/Release/DesignTimeResolveAssemblyReferences.cache differ