mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2026-02-04 06:02:17 +08:00
23 lines
445 B
C#
23 lines
445 B
C#
using System;
|
|
|
|
namespace CompressSave.Wrapper;
|
|
|
|
public class ZstdAPI : WrapperDefines
|
|
{
|
|
public static readonly bool Avaliable;
|
|
public static readonly ZstdAPI Instance = new();
|
|
|
|
static ZstdAPI()
|
|
{
|
|
try
|
|
{
|
|
Avaliable = Instance.ResolveDllImports("zstdwrap.dll");
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
Avaliable = false;
|
|
Console.WriteLine($"Error: {e}");
|
|
}
|
|
}
|
|
}
|