Snapshot for release 2026.10.15.2 (internal 9094d68)

This commit is contained in:
Tom Bohar 2026-10-15 20:32:34 -04:00
commit 516ad2bdf2
121 changed files with 6486 additions and 781 deletions

View file

@ -80,7 +80,7 @@ internal static unsafe class MinHook
IntPtr module = GetModuleHandleW(LoaderDll);
bool facade = module != IntPtr.Zero && GetProcAddress(module, "RcHooks_Version") != IntPtr.Zero;
if (!facade)
module = NativeLibrary.Load(DLL, typeof(MinHook).Assembly, null);
module = LoadMinHookFromEngineFolders();
IntPtr Get(string name)
{
@ -103,6 +103,19 @@ internal static unsafe class MinHook
};
}
/// <summary>
/// minhook.x86.dll by full path from the engine's folders (where the early preload found it).
/// Never by bare name: Windows' search order (the AC client folder, the current directory,
/// PATH) would load a planted minhook.x86.dll into the client when ours is missing.
/// </summary>
private static IntPtr LoadMinHookFromEngineFolders()
{
string? path = EntryPoint.FindNativeDll(DLL);
if (path == null)
throw new DllNotFoundException($"{DLL} was not found beside the engine (other folders are not searched).");
return NativeLibrary.Load(path);
}
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
private static extern IntPtr GetModuleHandleW(string lpModuleName);