MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / LoadWindows

Method LoadWindows

StereoKit/Native/NativeLib.cs:105–110  ·  view source on GitHub ↗
(string arch)

Source from the content-addressed store, hash-verified

103 [DllImport("kernel32", CharSet = CharSet.Unicode)]
104 static extern IntPtr LoadLibraryW(string fileName);
105 static bool LoadWindows(string arch)
106 {
107 if (LoadLibraryW($"{AppDomain.CurrentDomain.BaseDirectory}/runtimes/win-{arch}/native/StereoKitC.dll") != IntPtr.Zero) return true;
108 if (LoadLibraryW("StereoKitC") != IntPtr.Zero) return true;
109 return false;
110 }
111
112 static bool LoadUnix(string arch)
113 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected