Prefer local copies of SK over system installed SK on Linux
@@ -42,9 +42,9 @@ namespace StereoKit
static bool LoadUnix(string arch)
{
const int RTLD_NOW = 2;
- if (dlopen("libStereoKitC.so", RTLD_NOW) != IntPtr.Zero) return true;
if (dlopen($"./runtimes/linux-{arch}/native/libStereoKitC.so", RTLD_NOW) != IntPtr.Zero) return true;
if (dlopen($"{AppDomain.CurrentDomain.BaseDirectory}/runtimes/linux-{arch}/native/libStereoKitC.so", RTLD_NOW) != IntPtr.Zero) return true;
+ if (dlopen("libStereoKitC.so", RTLD_NOW) != IntPtr.Zero) return true;
return false;
}
}
