Ports four WeirdUtils modules (public domain, Zig) to C++ built with clang via `zig c++`, with MinHook 1.3.4 for detours. WeirdUtils needs a patched Zig compiler: stock Zig 0.16.0 miscompiles x86 __fastcall, which the WoW 1.12.1 client uses for its Lua API and many hooked functions. Core: - Lua protection bypass, Lua function registration on login/reload, and the WeirdUtils version table + GetWeirdUtilsVersion (AutoMarker needs it). - In-memory file serving (addon files, M2 models, BLP textures embedded with .incbin) and embedded addon registration. - WeirdUtils-compatible per-module mutexes, so leftover worldmarkers.dll / transmogfix.dll / weirdutils.dll skip the modules this DLL provides. - Single SceneEnd hook shared by Interact and Transmog Fix. Lua C functions are __fastcall(L): verified at 0x6F61A6 where the Lua VM calls them with L in ECX only. Verified offline: loads in a harness that maps WoW.exe at 0x400000, all 18 hooks and both byte patches applied, old companion DLLs step aside. Not yet tested in game. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 lines
18 B
Plaintext
4 lines
18 B
Plaintext
build/
|
|
tools/
|
|
*.o
|