Fix BFFNT with mulltiple images

This commit is contained in:
KillzXGaming 2019-05-12 12:17:57 -04:00
parent f62ad21e7d
commit 617eafb99a
5 changed files with 4 additions and 2 deletions

Binary file not shown.

View file

@ -268,11 +268,14 @@ namespace FirstPlugin
private const uint SwizzleBase = 0x000D0000;
private uint swizzle;
private uint Swizzle
{
get
{
return SwizzleBase | (byte)(SheetIndex * 2);
swizzle = SwizzleBase;
swizzle |= (uint)(SheetIndex * 2) << 8;
return swizzle;
}
}
@ -297,7 +300,6 @@ namespace FirstPlugin
surf.mipData = null;
surf.tileMode = (uint)GX2.GX2TileMode.MODE_2D_TILED_THIN1;
surf.swizzle = Swizzle;
surf.swizzle *= 2;
surf.numArray = 1;
var surfaces = GX2.Decode(surf);