mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-12-21 10:23:07 +00:00
2a92afa122
Chr0 can be imported/replaced. More fixes to importing sections including some errors and proper filtering. Dae epxorting now has a progress bar and an option to idsable texture exporting. Bfska can now be swapped between platforms. More sections will handle this method soon!. Fixed spaces on files from "Export All". Display multiple texture maps in bcres materials
23 lines
575 B
C#
23 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;
|
|
}
|
|
}
|
|
}
|
|
}
|