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>
27 lines
491 B
INI
27 lines
491 B
INI
# EditorConfig is awesome: http://EditorConfig.org
|
|
|
|
# top-most EditorConfig file
|
|
root = true
|
|
|
|
# Windows-style newlines with a newline ending every file
|
|
[*]
|
|
end_of_line = crlf
|
|
insert_final_newline = true
|
|
|
|
# 4 space indentation
|
|
[*.{c,h,def}]
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
# Trim trailing whitespaces
|
|
[*.{c,h,def,txt}]
|
|
trim_trailing_whitespace = true
|
|
|
|
# UTF-8 with BOM
|
|
[*.{c,h,def,txt}]
|
|
charset=utf-8-bom
|
|
|
|
# C/C++ code formatting
|
|
[*.{c,h}]
|
|
cpp_space_pointer_reference_alignment = right
|