Commit 8e0e7721 authored by Spencer Alves's avatar Spencer Alves

Fix texture writing (whoops)

parent c34e6f19
......@@ -358,7 +358,7 @@ namespace Altar.Repack
{
Pad(data, 0x80, 8);
var p = data.Buffer.Position;
//data.Buffer.Position = offsets[i] + 8;
data.Buffer.Position = offsets[i] + 4; // 8
secondaryOffsets[i] = data.Buffer.Position;
data.Buffer.Write(p);
data.Buffer.Position = p;
......@@ -366,7 +366,7 @@ namespace Altar.Repack
}
data.OffsetOffsets = data.OffsetOffsets.Concat(secondaryOffsets).ToArray();
Pad(data, 0x10, 0);
Pad(data, 8, 0);
}
private static void WriteFontCharEntry(BBData data, FontCharacter fc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment