mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-17 01:58:03 +00:00
Display multiple sheets
This commit is contained in:
parent
c656416474
commit
6c03f983c2
2 changed files with 2 additions and 3 deletions
|
@ -54,7 +54,7 @@ namespace FirstPlugin
|
|||
Nodes.Add(textureFolder);
|
||||
if (tglp.SheetDataList.Count > 0)
|
||||
{
|
||||
var bntx = STFileLoader.OpenFileFormat("Sheet_0", tglp.SheetDataList[0]);
|
||||
var bntx = STFileLoader.OpenFileFormat("Sheet_0", Utils.CombineByteArray(tglp.SheetDataList.ToArray()));
|
||||
if (bntx != null)
|
||||
{
|
||||
textureFolder.Nodes.Add((BNTX)bntx);
|
||||
|
@ -409,9 +409,8 @@ namespace FirstPlugin
|
|||
{
|
||||
for (int i = 0; i < SheetCount; i++)
|
||||
{
|
||||
|
||||
SheetDataList.Add(reader.ReadBytes((int)SheetSize));
|
||||
}
|
||||
SheetDataList.Add(reader.ReadBytes((int)SheetSize * SheetCount));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue