1
0
mirror of synced 2025-01-31 20:25:23 +01:00

Another fix

This commit is contained in:
KillzXGaming 2019-06-22 09:00:58 -04:00
parent fab1c82fd1
commit 456796d684
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -248,6 +248,7 @@ namespace FirstPlugin
if (UseDDS) if (UseDDS)
{ {
// Data.Add(SDFParent.block2Array[DdsType].Data.Take((int)SDFParent.block2Array[DdsType].UsedBytes).ToArray()); // Data.Add(SDFParent.block2Array[DdsType].Data.Take((int)SDFParent.block2Array[DdsType].UsedBytes).ToArray());
bool IsDX10 = false; bool IsDX10 = false;
using (var filereader = new FileReader(SDFParent.block2Array[DdsType].Data)) using (var filereader = new FileReader(SDFParent.block2Array[DdsType].Data))
{ {
@ -269,6 +270,8 @@ namespace FirstPlugin
Data.Add(SDFParent.block2Array[DdsType].Data.Take((int)0x80).ToArray()); Data.Add(SDFParent.block2Array[DdsType].Data.Take((int)0x80).ToArray());
} }
} }
Console.WriteLine("UsedBytes " + SDFParent.block2Array[DdsType].UsedBytes + " IsSwizzled " + IsSwizzled);
} }
for (var i = 0; i < CompressedSizes.Count; i++) for (var i = 0; i < CompressedSizes.Count; i++)

View File

@ -776,7 +776,7 @@ namespace Switch_Toolbox.Library
public override byte[] GetImageData(int ArrayLevel = 0, int MipLevel = 0) public override byte[] GetImageData(int ArrayLevel = 0, int MipLevel = 0)
{ {
if (IsAtscFormat(Format)) if (IsAtscFormat(Format))
SwitchSwizzle = false; SwitchSwizzle = true;
if (SwitchSwizzle) if (SwitchSwizzle)
return TegraX1Swizzle.GetImageData(this, bdata, ArrayLevel, MipLevel); return TegraX1Swizzle.GetImageData(this, bdata, ArrayLevel, MipLevel);