Files
DucielandClaude Opus 5.5 adb1179da5 ducielperf phase 1: C++ rewrite of WeirdUtils' World Markers, Interact, Clickthrough and Transmog Fix
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>
2026-11-14 23:14:07 +01:00

60 lines
2.1 KiB
YAML

name: Build
on:
workflow_dispatch:
push:
branches: [ "master" ]
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: build/VC17/MinHookVC17.sln
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build Win32
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform="Win32" ${{ env.SOLUTION_FILE_PATH }}
- name: Build x64
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform="x64" ${{ env.SOLUTION_FILE_PATH }}
- name: Collect artifacts
shell: bash
run: |
mkdir "${{ runner.temp }}/artifacts"
mv "build/VC17/bin/${{ env.BUILD_CONFIGURATION }}" "${{ runner.temp }}/artifacts/bin"
mv "build/VC17/lib/${{ env.BUILD_CONFIGURATION }}" "${{ runner.temp }}/artifacts/lib"
cp -r include "${{ runner.temp }}/artifacts/include"
- name: Package bin
uses: actions/upload-artifact@v4
with:
name: MinHook_bin
path: |
${{ runner.temp }}/artifacts/bin/
${{ runner.temp }}/artifacts/include/
- name: Package lib
uses: actions/upload-artifact@v4
with:
name: MinHook_lib
path: |
${{ runner.temp }}/artifacts/lib/
${{ runner.temp }}/artifacts/include/