mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix zstd library load on Linux
Probably important
This commit is contained in:
@@ -58,14 +58,14 @@ public static class ZStd
|
||||
if (OperatingSystem.IsLinux())
|
||||
{
|
||||
// Try zstd.so we ship ourselves.
|
||||
if (NativeLibrary.TryLoad("zstd.so", typeof(Zstd).Assembly, null, out var handle))
|
||||
if (NativeLibrary.TryLoad("zstd.so", assembly, path, out var handle))
|
||||
return handle;
|
||||
|
||||
// Try some extra paths from the system too worst case.
|
||||
if (NativeLibrary.TryLoad("libzstd.so.1", out handle))
|
||||
if (NativeLibrary.TryLoad("libzstd.so.1", assembly, path, out handle))
|
||||
return handle;
|
||||
|
||||
if (NativeLibrary.TryLoad("libzstd.so", out handle))
|
||||
if (NativeLibrary.TryLoad("libzstd.so", assembly, path, out handle))
|
||||
return handle;
|
||||
}
|
||||
else if (OperatingSystem.IsMacOS())
|
||||
|
||||
Reference in New Issue
Block a user