RynthCore/tools/check-patterns.ps1
Cursor Agent 4ddbb52eb2
feat: port aelrynth 2026.9.27.2 snapshot onto GitHub history
Overlay upstream/main (9b5e276) onto BlankenshipG main without rewriting
history. Keep origin-only Decal/plugin/docs trees. Re-apply aelrynth.com
and sibling-fork URL fixes that aelrynth git still has as tombohar links.

Co-authored-by: BlankenshipG <BlankenshipG@users.noreply.github.com>
2026-10-04 15:43:50 +00: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