1
0
mirror of synced 2024-12-02 19:17:24 +01:00
Switch-Toolbox/Switch_FileFormatsMain/FileFormats/BFRES/BfresUtilies.cs

24 lines
575 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Switch_Toolbox.Library.IO;
namespace FirstPlugin
{
public class BfresUtilies
{
public static bool IsSubSectionSwitch(string FileName)
{
using (var reader = new FileReader(FileName))
{
reader.ByteOrder = Syroot.BinaryData.ByteOrder.BigEndian;
reader.Seek(24, System.IO.SeekOrigin.Begin);
return reader.ReadUInt32() == 1;
}
}
}
}