(string arch)
| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected