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>
45 lines
360 B
Plaintext
45 lines
360 B
Plaintext
#OS junk files
|
|
[Tt]humbs.db
|
|
*.DS_Store
|
|
|
|
#Visual Studio files
|
|
*.[Oo]bj
|
|
*.user
|
|
*.aps
|
|
*.pch
|
|
*.vspscc
|
|
*.vssscc
|
|
*_i.c
|
|
*_p.c
|
|
*.ncb
|
|
*.suo
|
|
*.tlb
|
|
*.tlh
|
|
*.bak
|
|
*.[Cc]ache
|
|
*.ilk
|
|
*.log
|
|
*.sbr
|
|
*.sdf
|
|
*.opensdf
|
|
*.unsuccessfulbuild
|
|
ipch/
|
|
obj/
|
|
[Ll]ib
|
|
[Bb]in
|
|
[Dd]ebug*/
|
|
[Rr]elease*/
|
|
Ankh.NoLoad
|
|
*.VC.db
|
|
.vs/
|
|
|
|
#GCC files
|
|
*.o
|
|
*.d
|
|
*.res
|
|
*.dll
|
|
*.a
|
|
|
|
#Visual Studio Code files
|
|
.vscode/
|