Skip to content

Commit

Permalink
Fix creating new bfres having wrong byte order
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed Oct 18, 2024
1 parent 62199c0 commit 21315e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plugins/CafeLibrary/Bfres/BFRES.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ public void TryInsertTextureKey(string material, string sampler, string texture)

public override bool CreateNew(string menu_name = "WiiU")
{
ResFile = new ResFile();
ResFile = new ResFile() { ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian };
if (!menu_name.Contains("WiiU"))
{
ResFile.ByteOrder = Syroot.BinaryData.ByteOrder.LittleEndian;

ResFile.ChangePlatform(true, 4096, 0, 5, 0, 3,
new BfresLibrary.PlatformConverters.ConverterHandle());
}
Expand Down
Binary file modified Track Studio/Lib/BfresLibrary.dll
Binary file not shown.

0 comments on commit 21315e7

Please sign in to comment.