2019-05-24 21:15:35 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-07-16 23:35:21 +02:00
|
|
|
|
using Toolbox.Library.IO;
|
2019-05-24 21:15:35 +02:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|