mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 13:58:26 +00:00
Quick fix since appveyor is weird with modern c#
This commit is contained in:
parent
b06da55530
commit
7872502b11
1 changed files with 8 additions and 2 deletions
|
@ -299,18 +299,24 @@ namespace FirstPlugin {
|
||||||
|
|
||||||
#region Sections
|
#region Sections
|
||||||
internal class BTAF {
|
internal class BTAF {
|
||||||
public (uint offset, uint size)[] FileDataArray;
|
public FD[] FileDataArray;
|
||||||
|
|
||||||
public BTAF() { }
|
public BTAF() { }
|
||||||
public BTAF(BinaryDataReader reader) {
|
public BTAF(BinaryDataReader reader) {
|
||||||
uint numberOfFiles = reader.ReadUInt32();
|
uint numberOfFiles = reader.ReadUInt32();
|
||||||
FileDataArray = new (uint, uint)[numberOfFiles];
|
FileDataArray = new FD[numberOfFiles];
|
||||||
|
|
||||||
for(ulong i = 0; i < numberOfFiles; i++) {
|
for(ulong i = 0; i < numberOfFiles; i++) {
|
||||||
FileDataArray[i].offset = reader.ReadUInt32();
|
FileDataArray[i].offset = reader.ReadUInt32();
|
||||||
FileDataArray[i].size = reader.ReadUInt32();
|
FileDataArray[i].size = reader.ReadUInt32();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class FD
|
||||||
|
{
|
||||||
|
public uint offset;
|
||||||
|
public uint size;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
internal class BTNF {
|
internal class BTNF {
|
||||||
|
|
Loading…
Add table
Reference in a new issue