1
0
mirror of synced 2024-11-12 10:10:50 +01:00

Bfres library fixes.

Fixed user data not relocating with proper padding.
Alignment for botw is handled a bit differently in attempt to keep the file sizes accurate
This commit is contained in:
KillzXGaming 2019-05-07 21:07:58 -04:00
parent 4d91fdebc0
commit d33882b029
9 changed files with 13 additions and 5 deletions

Binary file not shown.

View File

@ -222,12 +222,12 @@ namespace FirstPlugin
botwTex.Add((TEXR)((SectionBase)node).BinaryData);
}
int index = 0;
if (botwTex.Count > 0)
{
TreeNode textureFolder = new TreeNode("Textures");
ptcl.Nodes.Add(textureFolder);
int index = 0;
if (botwTex.Count > 0)
{
List<TEXR> TextureList = new List<TEXR>();
foreach (var emitter in emitters)

View File

@ -270,7 +270,16 @@ namespace FirstPlugin
}
}
}
if (header.Version <= 11)
{
reader.Seek(pos + 120, SeekOrigin.Begin); //This is a guess
}
else
{
reader.Seek(pos + 1072, SeekOrigin.Begin);
}
ColorPosition = reader.Position;
for (int i = 0; i < 8; i++)
{

View File

@ -81,7 +81,6 @@ namespace FirstPlugin
}
}
public Type[] Types
{
get