1
0
mirror of synced 2024-09-24 11:38:22 +02:00

Skip unsupported msbt sections with section size.

This commit is contained in:
KillzXGaming 2019-07-04 18:00:55 -04:00
parent 9d203da716
commit fa84e46bba
9 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -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 }))
{

View File

@ -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();

View File

@ -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;