Files
mitch030504--Wiicompiled_VR…/translator/tests
iChris4andClaude Opus 5 1d8fcac35e Scan GX_DEFERRED overrides, and guard the Retro-WFC payload
The native-registration scan only knew PPC_NATIVE_OVERRIDE, so every
GX_DEFERRED_OVERRIDE_VOID was missing from the index; the deferred form
registers `symbol` and posts the hand-written `symbol_gx`.

A Retro Rewind kit built from a translation without the Retro-WFC payload now
refuses to package instead of crashing on entering WFC, and on Android ImGui
keeps off SDL's cursor, which ART aborts on from a guest fiber's stack.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 02:34:31 +02:00
..
2026-08-23 17:10:50 +02:00
2026-08-23 17:10:50 +02:00

Translator tests

Translator.Tests is the default binary-free suite. It covers the decoder, IR/SSA, code generation helpers, parsers with synthetic inputs, project-manifest loading, DOL-only image construction, and generic entry-point translation.

The older asset-backed and host-C++-compiler-backed test sources are intentionally retained in Translator.Tests but excluded in its project file. They mixed MKWii fixtures, several compiler selection strategies, and private-method reflection checks, which made the normal suite both slow and red on a clean Windows setup. They should become a separate opt-in integration project when that work is useful again.

An external generic DOL can be included without adding it to the repository:

$env:RECOMP_GENERIC_DOL = 'D:\path\to\main.dol'
dotnet test translator/Translator.sln -c Release

The test treats the file as a generic DOL: it reads the DOL entry point, builds a DOL-only image, and translates that entry point without game-specific addresses or bindings.