Switch-Toolbox/File_Format_Library/FileFormats/BFRES/BfresUtilies.cs
KillzXGaming 7cf2e9c571 Cleanup
2019-07-16 17:45:10 -04:00

23 lines
568 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using 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;
}
}
}
}