1
0
mirror of synced 2024-12-01 02:27:22 +01:00

More GTX file texture replacing fixes

This commit is contained in:
KillzXGaming 2019-06-08 21:48:30 -04:00
parent 62f35684ed
commit 33e886e546
4 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -581,7 +581,7 @@ namespace FirstPlugin
public override void Replace(string FileName)
{
FTEX ftex = new FTEX();
ftex.ReplaceTexture(FileName, Format, 1, SupportedFormats, true, true);
ftex.ReplaceTexture(FileName, Format);
if (ftex.texture != null)
{
surface.swizzle = ftex.texture.Swizzle;
@ -607,6 +607,8 @@ namespace FirstPlugin
Format = FTEX.ConvertFromGx2Format((Syroot.NintenTools.Bfres.GX2.GX2SurfaceFormat)surface.format);
Width = surface.width;
Height = surface.height;
MipCount = surface.numMips;
ArrayCount = surface.numArray;
ImageEditorBase editor = (ImageEditorBase)LibraryGUI.Instance.GetActiveContent(typeof(ImageEditorBase));