Another fix
This commit is contained in:
parent
fab1c82fd1
commit
456796d684
Binary file not shown.
@ -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++)
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user