Always prefer a specific DLL over something from common search paths.
@@ -31,8 +31,8 @@ namespace StereoKit
static extern IntPtr LoadLibraryW(string fileName);
static bool LoadWindows(string arch)
{
- if (LoadLibraryW("StereoKitC") != IntPtr.Zero) return true;
if (LoadLibraryW($"runtimes/win-{arch}/native/StereoKitC.dll") != IntPtr.Zero) return true;
+ if (LoadLibraryW("StereoKitC") != IntPtr.Zero) return true;
return false;
}
