mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
BCLAN: Fix writing of PAI1 section (#459)
Fixes writing of PAI1 section in BCLAN files (tested with Mario Kart 7 bclan files): 1. The offset of the strings is relative to the start of the table, not the start of the PAI1 section. 2. 4 bytes of padding after the strings are needed for proper alignment of the rest of the section.
This commit is contained in:
parent
6137bddb0d
commit
f6cd674c24
1 changed files with 2 additions and 1 deletions
|
@ -313,9 +313,10 @@ namespace LayoutBXLYT
|
|||
writer.Write(new uint[Textures.Count]);
|
||||
for (int i = 0; i < Textures.Count; i++)
|
||||
{
|
||||
writer.WriteUint32Offset(startOfsPos + (i * 4), startPos);
|
||||
writer.WriteUint32Offset(startOfsPos + (i * 4), startOfsPos);
|
||||
writer.WriteString(Textures[i]);
|
||||
}
|
||||
writer.Align(4);
|
||||
}
|
||||
if (Entries.Count > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue