1
0
mirror of synced 2025-02-25 22:38:07 +01:00

More adjustments

This commit is contained in:
KillzXGaming 2019-07-22 19:01:29 -04:00
parent 667ec7c752
commit 8be02596e6
5 changed files with 19 additions and 5 deletions

Binary file not shown.

View File

@ -54,10 +54,20 @@ namespace FirstPlugin
using (var reader = new FileReader(stream))
{
reader.ByteOrder = Syroot.BinaryData.ByteOrder.LittleEndian;
bool IsVersion2 = reader.CheckSignature(8, "PACx302L");
bool IsVersion2 = reader.CheckSignature(8, "PACx402L");
reader.SeekBegin(8);
uint Checksum = reader.ReadUInt32();
uint FileSize = reader.ReadUInt32();
if (IsVersion2)
{
}
else
{
}
}
}

View File

@ -232,7 +232,7 @@ namespace Toolbox.Library
bool.TryParse(node.InnerText, out Runtime.FrameCamera);
break;
case "UseDirectXTexDecoder":
bool.TryParse(node.InnerText, out Runtime.UseDirectXTexDecoder);
// bool.TryParse(node.InnerText, out Runtime.UseDirectXTexDecoder);
break;
case "AlwaysCompressOnSave":
bool.TryParse(node.InnerText, out Runtime.AlwaysCompressOnSave);

View File

@ -415,6 +415,8 @@ namespace Toolbox.Library
(int)width, (int)height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
}
Console.WriteLine("Decoding " + Format + " " + Runtime.UseDirectXTexDecoder);
if (Runtime.UseDirectXTexDecoder)
{
return BitmapExtension.GetBitmap(DecodeBlock(data, width, height, Format, new byte[0]),

View File

@ -35,11 +35,13 @@ namespace Toolbox
var domain = AppDomain.CurrentDomain;
domain.AssemblyResolve += LoadAssembly;
Toolbox.Library.Runtime.UseDirectXTexDecoder = TryLoadDirectXTex();
MainForm form = new MainForm();
form.openedFiles = Files;
Toolbox.Library.Runtime.UseDirectXTexDecoder = TryLoadDirectXTex();
Toolbox.Library.Runtime.UseDirectXTexDecoder = false;
Application.Run(form);
}