1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Load the x64 folder for direct x tex by default as it causes issues without.

This commit is contained in:
KillzXGaming 2019-05-31 17:12:23 -04:00
parent da15dc55fc
commit a3a6f9b98e
8 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@ using System;
using System.Linq;
using System.Collections.Generic;
namespace Switch_Toolbox.Library
namespace Switch_Toolbox.Library.OLD
{
public class GX2
{
@ -748,6 +748,8 @@ namespace Switch_Toolbox.Library
surfInfo = getSurfaceInfo((GX2SurfaceFormat)tex.format, tex.width, tex.height, tex.depth, (uint)tex.dim, (uint)tex.tileMode, (uint)tex.aa, mipLevel);
data = new byte[surfInfo.surfSize];
//In the case of PTCL
//Does not work atm so same parameters currently
if (tex.data == tex.mipData)
Array.Copy(tex.mipData, (uint)mipOffset, data, 0, surfInfo.surfSize);
else

View File

@ -2,7 +2,7 @@
using System.Linq;
using System.Collections.Generic;
namespace Switch_Toolbox.Library.NEW
namespace Switch_Toolbox.Library
{
//Todo fix swizzle issues with this one
public class GX2
@ -705,8 +705,8 @@ namespace Switch_Toolbox.Library.NEW
result.Add(mips);
dataOffset += ArrayImageize;
mipDataOffset += ArrayMipImageize;
// dataOffset += ArrayImageize;
// mipDataOffset += ArrayMipImageize;
}
return result;

Binary file not shown.