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:
parent
4d91fdebc0
commit
d33882b029
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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)
|
||||
|
@ -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++)
|
||||
{
|
||||
|
@ -81,7 +81,6 @@ namespace FirstPlugin
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public Type[] Types
|
||||
{
|
||||
get
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user