Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ LoadLibraryCallbackStub()

static IntPtr System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub ( string libraryName,
Assembly assembly,
bool hasDllImportSearchPathFlags,
uint dllImportSearchPathFlags )
inlinestaticpackage

Definition at line 146 of file NativeLibrary.cs.

147 {
148 if (s_nativeDllResolveMap == null)
149 {
150 return IntPtr.Zero;
151 }
152 if (!s_nativeDllResolveMap.TryGetValue(assembly, out var value))
153 {
154 return IntPtr.Zero;
155 }
156 return value(libraryName, assembly, hasDllImportSearchPathFlags ? new DllImportSearchPath?((DllImportSearchPath)dllImportSearchPathFlags) : null);
157 }
static ConditionalWeakTable< Assembly, DllImportResolver > s_nativeDllResolveMap

References System.Runtime.InteropServices.NativeLibrary.s_nativeDllResolveMap, System.value, and System.IntPtr.Zero.