From b0f77f247a542b37a92393dfc38e919b821acc3a Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Tue, 11 Aug 2020 16:47:01 -0400 Subject: [PATCH] BFRES : Fix bntx files with custom file names (PMTOK missing textures fixed) --- .../FileFormats/BFRES/BFRES.cs | 2 +- Toolbox/Lib/Syroot.NintenTools.NSW.Bntx.dll | Bin 95232 -> 94720 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/BFRES/BFRES.cs b/File_Format_Library/FileFormats/BFRES/BFRES.cs index d70c4d65..d3fe17a7 100644 --- a/File_Format_Library/FileFormats/BFRES/BFRES.cs +++ b/File_Format_Library/FileFormats/BFRES/BFRES.cs @@ -1532,7 +1532,7 @@ namespace FirstPlugin ((BNTX)node).Save(mem); resFile.ExternalFiles.Add(new ExternalFile() { Data = mem.ToArray() }); - resFile.ExternalFileDict.Add("textures.bntx"); + resFile.ExternalFileDict.Add(((BNTX)node).FileName); } } } diff --git a/Toolbox/Lib/Syroot.NintenTools.NSW.Bntx.dll b/Toolbox/Lib/Syroot.NintenTools.NSW.Bntx.dll index 9c3d40925fff1c790fbfe390071aadc63f3c358d..ece95dd34bd84646b57889c382b759d82915a995 100644 GIT binary patch delta 5490 zcmZYD3tUun_5kqTIWRiN!=aG5b1%9e@)QKpMj-HsATA&&;cbTd?O^s^@<`hS)5q!HO28Q}Vq7cO(gjqj%YmIAXA^gb=5M^3X3!=ashH>uc z5Ym4eMc0LZ=FufEyfq&WM!^EN ze{41kbx)05*LpkF2Jo!AUtAJwa%aVb(s6NIG9AAfmkllM@8Wj%0gGCy(97qs*4N`# zntj_$qI_YC5Pg#%X3_72SKCCah>32GZ%M2QvexaHi) zz+?aK?8CXSfunl=cW!;|fWW=~eYW+_x%*7EII}3<8e#R?8X;8_Ysa=;TO;I(>ejWB zSM`G0R{t3f`OxaK=hZ_?>zR3e2{?F(}zOP zPKofWDcKqH=xKE=bw)ZGe^1AvR!X&lI4d@3Y7&{f%B*LF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