Skip unsupported msbt sections with section size.
This commit is contained in:
parent
9d203da716
commit
fa84e46bba
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1001,7 +1001,7 @@ namespace Bfres.Structs
|
||||
{
|
||||
bool HasMatch = false;
|
||||
|
||||
//Generate a list of smoth matrices from the node array
|
||||
//Generate a list of smooth indicies from the node array
|
||||
int i = 0;
|
||||
foreach (var defBn in nodeArrStrings.Select((Value, Index) => new { Value, Index }))
|
||||
{
|
||||
|
@ -144,6 +144,8 @@ namespace FirstPlugin
|
||||
break;
|
||||
}
|
||||
|
||||
reader.SeekBegin(pos + SectionSize + 0x10);
|
||||
|
||||
while (reader.BaseStream.Position % 16 != 0 && reader.BaseStream.Position != reader.BaseStream.Length)
|
||||
{
|
||||
reader.ReadByte();
|
||||
|
Binary file not shown.
Binary file not shown.
@ -30,7 +30,7 @@ namespace Switch_Toolbox.Library.Forms
|
||||
textureFileFormatCB.Items.Add("Portable Network Graphics (.png)");
|
||||
textureFileFormatCB.Items.Add("Joint Photographic Experts Group (.jpg)");
|
||||
textureFileFormatCB.Items.Add("TGA (.tga)");
|
||||
textureFileFormatCB.Items.Add("Tagged Image File Format (.tiff)");
|
||||
textureFileFormatCB.Items.Add("Tagged Image File Format (.tif)");
|
||||
textureFileFormatCB.Items.Add("Bitmap Image (.bmp)");
|
||||
textureFileFormatCB.SelectedIndex = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user