RynthCore/tools/check-patterns.ps1
Tom Bohar 68c301dac8 RynthCore as of 2026-09-05 (internal f9abab9)
A snapshot of the working tree for aelrynth.com/git/: the code, build files
and public docs. Internal review notes and agent instructions are left out.
MIT licensed; see LICENSE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 21:22:59 -04:00

28 lines
1 KiB
PowerShell

<#
.SYNOPSIS
Pre-deploy / CI gate: verify every acclient.exe address pattern embedded in the engine
source still resolves uniquely and correctly against the target client binary.
Exits 0 if all patterns verify, non-zero if any drifted (binary changed) or is wrong
(transcription typo). Wire this into the deploy script or CI BEFORE publishing the engine,
so a future AC patch / ACE rebuild can't silently ship a hook that falls back to a stale VA.
.PARAMETER AcClient
Path to the acclient.exe to verify against. Defaults to the fingerprinted reference client.
Point it at whatever binary the engine will actually be injected into.
.EXAMPLE
pwsh tools\check-patterns.ps1
pwsh tools\check-patterns.ps1 -AcClient "C:\Games\RynthCore\AcClient\acclient.exe"
#>
param(
[string]$AcClient = "C:\Turbine\Asheron's Call\acclient.exe"
)
if (-not (Test-Path -LiteralPath $AcClient)) {
Write-Error "acclient.exe not found at: $AcClient"
exit 2
}
python "$PSScriptRoot\pe_pattern.py" $AcClient CHECK
exit $LASTEXITCODE