mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-12-30 06:43:09 +00:00
24 lines
575 B
C#
24 lines
575 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|