Ridgeline is a reusable Win32/x86 game patching framework. It provides function hooking, code injection, DLL injection, and supporting utilities for building runtime patches for Win32 games.
- Function hooking —
FunHook,CallHookwith__cdecl,__fastcall,__stdcallsupport - Code injection — inject handlers at arbitrary addresses with full register access
- x86 assembler —
AsmWriterfor emitting x86 instructions programmatically - Memory utilities — type-safe memory reads/writes, function calls by address
- DLL injection — launch a process suspended, inject a patch DLL, then resume
- Crash handling — vectored exception handler with watchdog timer
- Logging — structured logging with file, console, and debug output appenders
- D3D8→D3D9 bridge — included
d3d8to9for patching D3D8-era games
Requires CMake 3.15+ and a C++20 compiler (MSVC recommended). x86 only.
cmake -S . -B build -A Win32
cmake --build build --config Release
See docs/BUILDING.md for details.
See docs/FRAMEWORK_GUIDE.md for a guide to using each framework component.
Ridgeline is structured after and includes code derived from: