More adjustments
This commit is contained in:
parent
667ec7c752
commit
8be02596e6
Binary file not shown.
@ -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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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]),
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user