mirror of
https://github.com/lifegpc/GARbro.git
synced 2026-07-08 01:31:41 +08:00
Fix zstd not loaded
This commit is contained in:
@@ -111,6 +111,7 @@
|
||||
<Compile Include="FC01\ArcBDT.cs" />
|
||||
<Compile Include="FC01\BdtTables.cs" />
|
||||
<Compile Include="GScripter\ArcDATA.cs" />
|
||||
<Compile Include="ImageJXL.cs" />
|
||||
<Compile Include="Ism\ImagePNG.cs" />
|
||||
<Compile Include="Kogado\ArcARC.cs" />
|
||||
<Compile Include="Ice\ImageIBM.cs" />
|
||||
@@ -1268,10 +1269,16 @@
|
||||
<EmbeddedResource Include="Strings\arcStrings.ru-RU.resx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="x64\zstd.dll">
|
||||
<Content Include="x64\jxl_dec.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="x86\zstd.dll">
|
||||
<Content Include="x64\zstd-1.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="x86\jxl_dec.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="x86\zstd-1.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
23
ArcFormats/ImageJXL.cs
Normal file
23
ArcFormats/ImageJXL.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
|
||||
namespace GameRes.Formats
|
||||
{
|
||||
// [Export(typeof(ImageFormat))]
|
||||
// public class JxlImageFormat : ImageFormat, IDisposable
|
||||
// {
|
||||
// public override string Tag { get { return "JXL"; } }
|
||||
// public override string Description { get { return "JPEG XL image format"; } }
|
||||
// public override uint Signature { get { return 0; } } // JXL signature starts with 0xFF 0x0A
|
||||
// public override bool CanWrite { get { return false; } }
|
||||
|
||||
// public JxlImageFormat()
|
||||
// {
|
||||
// Extensions = new[] { "jxl" };
|
||||
// }
|
||||
// }
|
||||
}
|
||||
@@ -9,13 +9,13 @@ namespace GameRes.Compression
|
||||
{
|
||||
private const int BUFFER_SIZE = 4096;
|
||||
|
||||
[DllImport("zstd.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport("zstd-1.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern IntPtr ZSTD_createDStream();
|
||||
|
||||
[DllImport("zstd.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport("zstd-1.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern int ZSTD_decompressStream(IntPtr zds, ref ZSTD_outBuffer output, ref ZSTD_inBuffer input);
|
||||
|
||||
[DllImport("zstd.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
[DllImport("zstd-1.dll", CallingConvention = CallingConvention.Cdecl)]
|
||||
private static extern int ZSTD_freeDStream(IntPtr zds);
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
||||
BIN
ArcFormats/x64/jxl_dec.dll
Normal file
BIN
ArcFormats/x64/jxl_dec.dll
Normal file
Binary file not shown.
BIN
ArcFormats/x86/jxl_dec.dll
Normal file
BIN
ArcFormats/x86/jxl_dec.dll
Normal file
Binary file not shown.
Reference in New Issue
Block a user