reEngine
Documentation Menu
On This Page

reEngine — System Architecture

Synced Version: 0.7.0 (2026-11-29)
Scope: Runtime Topology, Assembly Boundaries, Execution Pipelines, File Inventory & Data Stores
License: Mozilla Public License Version 2.0 (MPL-2.0, root LICENSE)


1. System Context & Runtime Model

reEngine is a zero-daemon static recompilation package router, unified reEngine.Host.dll runtime host (native GPU contexts, live video filter + accessibility daltonization/flash-reduction pipeline, late-latch VRR pacing, SDL3 hot-switchable audio DSP & Sound Test, 4-port input with focus isolation and extended analog/hold-toggle/turbo/gyro tuning, dynamic device prompt glyphs, 10-rail two-column Deep Slate F1 overlay, full-screen Media Gate, native OS dialogs, and 100% controller navigation), WinForms-free SDL3 Suite Manager (reEngine.App), .decomp Bring-Up runner, <dataDir>\cache\ AOT assembly manager, and pure Win32 Setup installer (reEngine.Installer).

  • Zero Background Footprint: Exiting the SDL3 Suite Manager UI or child engine leaves zero resident processes (ReEnginePackagingConstants.AllowAutoStart = false, 0 MB idle background memory, zero Windows Startup entries).
  • Peer User-Scope Suite Topology & Pure Win32 Setup: Non-admin installation uses %LOCALAPPDATA%\Programs\StreamItAll\reEngine\{reEngine,toolchain,engines,games}\ (umbrellaSubpath = "StreamItAll\\reEngine\\reEngine"). reEngine.Installer runs pure Win32 WizardControl.RunDialog() (Foundation.Installer v0.6.0), while LegacyMigrationHelper preserves all domain configs (settings.json, settings.video.json, settings.audio.json, settings.controls.json) and existing schema versions (Math.Max(existingSchemaVersion, 1)) with .bak recovery across upgrades.
  • Canonical Split Storage (<InstallRoot>\data\config\ & <InstallRoot>\logs\): ProgramBootstrapHelper anchors --data-dir <InstallRoot>\data, --config <InstallRoot>\data\config\settings.json, and --log-dir <InstallRoot>\logs. SettingsDomainStore + HostSettingsStore separate runtime state across settings.json (v2 core/execution + focus/prompt/accessibility defaults), settings.video.json (colorblindMode, isFlashReductionEnabled, display/filters), settings.audio.json, and settings.controls.json (inputTuning + 3-tier bindings + host actions) with automatic v1 -> v2 migration (data\config_history\) and self-healing data\quarantine\ recovery.
  • Frontend Bridge, Engine Fallback, Bounded Shutdown & SDL3 .decomp Bring-Up:
  • Frontend game launchers route .recomp launches synchronously to reEngine.exe --open <pkg> --wait [--fullscreen] [--save-dir <dir>] [--shutdown-timeout-ms 3000].
  • Root reEngine.Launcher binds LauncherJobObjectGuard (JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE) strictly when ShouldWaitForChild is true; inside reEngine.App, during --wait cancellation, GracefulProcessTreeShutdown posts WM_CLOSE across the child process tree so saves flush cleanly into --save-dir within shutdownTimeoutMs before JobObjectGuard disposal, and abnormally exiting engines trigger prompt-first fallback relaunch (RecompLaunchCoordinator.TryCrashFallbackRelaunchAsync) assisted by SessionRecoveryLocator.
  • Double-clicking a .decomp file from Windows Explorer opens ReEngineSdlManagerWindow straight onto the Bring-Up shelf (MainShelfKind.BringUp) with automatic suite-tree media discovery (SuiteMediaTreeWalker), HostDialogService pickers/prompts, standalone --verify-module, and interactive stage execution.
flowchart LR
    User["User / Windows Shell\n(.recomp / .decomp)"] --> Launcher["reEngine.Launcher\n(reEngine.exe, single-file < 2 MB + wait-only JobObject)"]
    Installer["reEngine.Installer\n(Pure Win32 Setup + installer.manifest.json)"] -->|Deploys peer suite & preserves split settings| Suite["%LOCALAPPDATA%\\Programs\\StreamItAll\\reEngine\\"]
    Launcher -->|CWD path norm + sync-wait| App["reEngine.App\n(app\\reEngine.exe SDL3 Manager UI & CLI >=0.7.0)"]
    App -->|Consumes| Core["reEngine.Core.dll\n(Compatibility, Recovery, Walker, D4_CleanSource, Verify)"]
    App -->|Host Runtime & Presenters| Host["reEngine.Host.dll\n(5 Backends, 10-Rail UI, Prompts, Access, Tuning, Dialogs)"]
    Suite --> ReDir["reEngine\\ (router + app\\)"]
    Suite --> ToolDir["toolchain\\ (Full: CLI Ghidra + OpenJDK)"]
    Suite --> EngDir["engines\\re<Platform>\\v<Ver>\\ (.ready)"]
    Suite --> GameDir["games\\<GameRecomp>\\ (+ data\\rom\\)"]
    App -->|--wait WM_CLOSE / crash fallback / detached| EngineExe["Child Platform Engine\n(reStation/reSlate, reCart/reCartOne/reNes)"]
    App -->|2s feed check + resumable .part| Feed["Version Feed / .staging-<ver>"]
    Core -->|AOT index + SHA-256 lock| Cache["<dataDir>\\cache\\aot-index.json"]

2. Assembly / .dll & Module Dependency Graph

The solution Dev\reEngine.slnx inherits Dev\Directory.Build.props (Version = 0.7.0, LangVersion = latest, Nullable = enable, TreatWarningsAsErrors = true, Deterministic = true, ContinuousIntegrationBuild = true in Release, <DebugType>none</DebugType>, and <PathMap> workspace scrubbing) and consumes Foundation v0.6.0 (WizardControl.RunDialog(), IAutomationSurfaceTarget, ExeboxStreamHelpers) from Dev\lib\.

graph TD
    FC["Dev/lib/Foundation.Core.dll v0.6.0 (RO)"]
    FR["Dev/lib/Foundation.Retro.dll v0.6.0 (RO)"]
    FI["Dev/lib/Foundation.Installer.dll v0.6.0 (RO)"]
    FL["Dev/lib/Foundation.Launcher.dll v0.6.0 (RO)"]
    FA["Dev/lib/Foundation.Automation.dll v0.6.0 (RO, Debug/Test Only)"]

    Core["reEngine.Core (net8.0)\nSDK, Compatibility, Recovery, SettingsDomainStore -> SharedLibs/reEngine/v0.7.0/"]
    Host["reEngine.Host (net8.0;net8.0-windows)\n5 Backends, 10-Rail UI, Prompts, Access, Tuning -> SharedLibs/reEngine/v0.7.0/"]
    App["reEngine.App (net8.0-windows)\nSDL3 Suite Manager UI, >=0.7.0 Flag Router, Fallback & .decomp Bring-Up"]
    Launcher["reEngine.Launcher (net8.0-windows)\nSingle-File Root Stub (< 2 MB, LauncherJobObjectGuard)"]
    Setup["reEngine.Installer (net8.0-windows)\nPure Win32 Setup EXE (ExitCode=2 Release guard)"]
    Tests["reEngine.Tests (net8.0-windows)\n32 xUnit Verification Suites (163 Tests)"]

    Core --> FC
    Core --> FR
    Host --> Core
    Host --> FC
    Host --> FR
    Host -.->|Debug / ReEngineTestAutomation only| FA
    App --> Core
    App --> Host
    App --> FC
    App -.->|Debug / ReEngineTestAutomation only| FA
    Setup --> Core
    Setup --> FC
    Setup --> FI
    Setup --> FR
    Setup -.->|Debug / ReEngineTestAutomation only| FA
    Launcher -.->|Embedded GZip / Ref| FL
    Tests --> Core
    Tests --> Host
    Tests --> Setup
Assembly Target Allowed Dependencies Boundary Constraints & Rules
reEngine.Core net8.0 Foundation.Core, Foundation.Retro Zero WinForms/SDL UI deps; zero retail ROM/BIOS/generated assets
reEngine.Host net8.0 / net8.0-windows reEngine.Core, Foundation.Core, Foundation.Retro, ppy.SDL3-CS, OS native GPU/dialog libs (opengl32/vulkan-1/d3d12/dxgi/comdlg32/shell32) (Foundation.Automation on Debug \| ReEngineTestAutomation=true only) Release net8.0 & net8.0-windows contain 0 Foundation.Automation, Foundation.UI, or System.Windows.Forms refs; direct clean-room P/Invoke/COM without heavy third-party UI SDKs
reEngine.App net8.0-windows reEngine.Core, reEngine.Host, Foundation.Core, Foundation.Retro (Foundation.Automation/Foundation.UI on Debug \| ReEngineTestAutomation=true only) Release reEngine.dll contains 0 System.Windows.Forms, Foundation.Automation, or Foundation.UI refs; Fail-Closed ExitCode = 2 if --automation-port in Release; ExitCode = 6 on BackendUnavailableException
reEngine.Launcher net8.0-windows Embedded Foundation.Launcher.dll Zero reEngine.Core or reEngine.Host ref (keeps single-file stub < 2 MB)
reEngine.Installer net8.0-windows reEngine.Core, gzipped Foundation.{Core,Installer,Retro}, installer.manifest.json (Foundation.Automation/Foundation.UI on Debug \| ReEngineTestAutomation=true only) Release Setup contains 0 System.Windows.Forms, Foundation.Automation, or Foundation.UI refs; AllowAutoStart = false; preserves split configs & schemaVersion >= 1
reEngine.Tests net8.0-windows Core, Host, Installer + linked Launcher/App files + xUnit + Foundation.Automation Isolated APP_ISOLATED_TEST=1 temp roots only; Stage 2 visible-window sandbox E2E

3. End-to-End Data Flow per Major Pipeline

3.1 .recomp Launch, Suite Media Fallback, Engine Resolution & Crash Recovery, --wait Teardown

  1. Shell double-click or CLI invokes root reEngine.exe (reEngine.Launcher\Program.cs), which preserves --verify-module, --headless, --json, and --host-demo/--demo-cart synchronously via LauncherArgsHelper, normalizes caller-CWD relative paths (--rom, --disc, --media-path, selective --verify-module), handles optional-value --require-backend [<id>], attaches LauncherJobObjectGuard (JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE) strictly when ShouldWaitForChild is true, and delegates to app\reEngine.exe.
  2. Program.cs dispatches interactive Explorer .decomp or manager invocations directly onto Program.SdlManager.cs -> ReEngineSdlManagerWindow (preserving Control IDs Pill_Library, Pill_Engines, Pill_BringUp, Btn_ToggleDrawer, Drawer_Panel, Chk_Fullscreen, Btn_VerifyPackage, Btn_RunStage, Btn_VerifyDecomp, Btn_Close), runs --host-demo / --demo-cart (DemoCartSessionHelper), handles dual-mode --verify-module, or executes RecompLaunchCoordinator.
  3. EngineVersionResolver enforces resolution precedence: (1) pinnedEngineVersions (moduleId -> engineId -> EngineAliasCatalog aliases: exact SemVer, "bundled", "target", "latest"), (2) latest .ready-gated re* candidate >= engineVersion NOT matching incompatibleEngineVersions (EngineCompatibilityEvaluator), and (3) bundled fallback (TryResolveBundledOrTargetFallback).
  4. RecompLaunchPlanBuilder + RecompLaunchFlagRouter normalize backends (dx12/d3d12 -> directx, metal), throw BackendUnavailableException (ExitCode = 6) on --require-backend, fall back through SuiteMediaTreeWalker, and route flags across < 0.3.0, >= 0.3.0, >= 0.6.0, >= 0.6.1, and >= 0.7.0 (Supports070Routing).
  5. On abnormal child exit (not in {0, 6, 130}), RecompLaunchCoordinator.TryCrashFallbackRelaunchAsync scans SessionRecoveryLocator (checkpoint > quickResume > quickSave/.state > saveVaultBackup > saveFile) and offers a prompt-first relaunch onto bundled/target fallback via HostDialogService (suppressed cleanly under FOUNDATION_SUPPRESS_MODALS=1, --headless, --json, --dry-run, or APP_ISOLATED_TEST=1). On synchronous --wait cancellation, GracefulProcessTreeShutdown posts WM_CLOSE BEFORE JobObjectGuard.Dispose().

3.2 reEngine.Host Focus Isolation, Tuning, Dynamic Prompts, Accessibility & 10-Rail Menu

  1. Focus Isolation & Extended Input Tuning (HostSessionInputBridge + HostInputTuningProcessor): HostSessionInputBridge isolates unfocused keyboard/mouse events whenever !isWindowFocused (clearing held KBM keys immediately on focus loss), decouples shouldPauseOnFocusLoss (pauses OnFrameTickAsync & mutes audio clock) from allowBackgroundControllerInput (continues polling PadPorts[0..3] when unfocused while KBM stays isolated), and delegates to allocation-free HostInputTuningProcessor (12.0x faster hot path) for inner/outer radial deadzones (5–50% / 60–100%), stick curves (linear, exponential, smoothS), stick swap, isLookYInverted, mouseSensitivityY, Hold/Toggle latches (Sprint, AimBlock, Crouch, LockOn, FastForward, gated when menu open), deterministic Turbo (4–30 Hz), and 3D Gyro IMU delta scaling.
  2. Dynamic Device Prompt Glyphs & Native Dialogs: HostPromptGlyphProvider detects the most recently actuated device family (Kbm, Xbox, PlayStation, Nintendo, SteamDeck, Generic) under promptGlyphMode: "auto" (or honors explicit override) and renders clean-room geometric button badges onto PixelOverlayCanvas. HostDialogService provides WinForms-free native open-file, folder, Yes/No, and info dialogs honoring FOUNDATION_SUPPRESS_MODALS=1.
  3. Accessibility Filters, Display/Filter Pipeline & Audio DSP: HostAccessibilityFilterPass integrates vectorized SIMD/fixed-point colorblindMode (none, deuteranopia, protanopia, tritanopia) 3x3 daltonization matrices and temporal luminance isFlashReductionEnabled clamping (8.2x faster) directly inside HostVideoFilterPipeline (zero-copy fast path preserved when disabled), alongside HostFramePacingController, HostViewportGeometry (21:9 Hor+ + 4:3 FMVs), HostScreenshotService (F12), and HostAudioDspPipeline + HostSoundTestService.
  4. 10-Rail Two-Column Deep Slate Overlay Menu + Quit Game: F1SettingsDrawerView delegates layout to F1DrawerTwoColumnLayout rendering Left Category Rail across all 10 OrderedTabs (Quick Actions, Video, Audio, Controls, Keybinds, Accessibility, Packs & Mods, Manual / Notes, System, Media) + pinned red Drawer_QuitGame footer button, Right Content Pane views (QuickActionsTabView, AccessibilityTabView, PacksAndManualTabViews, ControlsTuningSubView, etc.), and live footer device prompt hints via IHostPromptGlyphProvider, with 100% controller navigation (HostDrawerControllerNav).

3.3 .decomp, Root-Tree Media Discovery, D4_CleanSource & --verify-module Pipeline

  1. SuiteMediaTreeWalker performs depth-capped (<= 5), reparse-safe, containment-checked media searches across module-local and <SuiteRoot> (games\*\data\rom\, gamedata\, data\rom\), flags multi-game ambiguities cleanly, and supports opt-in StageMediaIntoRomDirectoryAsync copying .cue + contained .bin tracks (plus .fds parity alongside .nes).
  2. DecompD4StrictnessValidator enforces canonical D4_CleanSource across CanonicalCorpusTiers while mapping legacy D4_FunctionalRewrite without double counting.
  3. PackageVerificationService validates .recomp and .decomp schema, clean-room integrity, engine/alias tracks, and media readiness (hasMediaReady warning-only unless --require-media), emitting camelCase JSON (isPassed, generatedAtUtc, durationMs, exitCode).

4. Architecture Notes & SLOC Discipline (<= 250 / 400 / 600)

All v0.7.0 source and test modules (Dev/src/**/*.cs and Dev/tests/**/*.cs) stay below the 400 code-only SLOC soft ceiling (HostSessionRunner.cs 398 SLOC, ReEngineSdlManagerState.cs 346 SLOC, F1SettingsDrawerView.cs 298 SLOC, ControlsTabView.cs 253 SLOC, Program.cs 217 SLOC, reEngine.Installer\Program.cs 235 SLOC, HostInputTuningProcessor.cs 229 SLOC, HostAccessibilityFilterPass.cs 217 SLOC, HostPromptGlyphProvider.cs 187 SLOC, HostDialogService.cs 193 SLOC).


5. Settings, Manifest & State Store Ownership Map

reEngine uses zero SQLite databases; all runtime state persists in split atomic JSON domains with .bak, config_history\, and quarantine\ recovery:

File Store (under <dataDir>\) Owner Type Canonical Keys Backup / Locking Mechanism
config\settings.json (template: Dev\settings.example.json) SettingsDomainStore / HostSettingsStore / LegacyMigrationHelper schemaVersion: 2, domain: "core", appId, updatedAtUtc, installProfile, executionTierMode, isJitEnabled, shouldPreloadMediaToRam, isFastBootEnabled, isSafeModeActive, shouldFastLoadData, shouldEnableRuntimeLogs, fastForwardMultiplier, shouldPauseOnFocusLoss, allowBackgroundControllerInput, promptGlyphMode, isFastTextEnabled, isFlashReductionEnabled, isSubtitlesEnabled, shutdownTimeoutMs, shouldCheckUpdates, shouldAutoStagePatches, pinnedEngineVersions, stagedUpdatePath, reEngineInstallDir, suiteInstallDir, umbrellaSubpath, decompSchemaVersion, goalDecompTier, targetDecompTier GranularSettingsManager .tmp atomic rename + .bak + config_history\ + quarantine\; [JsonExtensionData] preserves unknown keys
config\settings.video.json SettingsDomainStore / HostSettingsStore schemaVersion: 2, domain: "video", backendId, resolutionScale, displayMode, monitorIndex, isFullscreen, isVsyncEnabled, frameRateMode, targetFps, backgroundFpsCap, aspectRatioMode, overscanCropPx, isFastForwardEnabled, isHdTexturePackEnabled, hudAnchorMode, videoFilterMode, isTrueColor24BitEnabled, isDitheringEnabled, screenshotCaptureMode, uiTextScale, isFpsOverlayEnabled, isCleanCaptureModeEnabled, colorblindMode, isFlashReductionEnabled Atomic .tmp + .bak + quarantine\ recovery
config\settings.audio.json SettingsDomainStore / HostSettingsStore schemaVersion: 2, domain: "audio", audioDriver, audioOutputDevice, masterVolume, isAudioMuted, bgmVolume, sfxVolume, voiceVolume, shouldMuteOnFocusLoss, audioLowPassHz, audioHighPassHz, audioStereoWidthPercent, audioResamplingMode, fastForwardAudioMode Atomic .tmp + .bak + quarantine\ recovery
config\settings.controls.json HostControlTierStore / HostInputTuningCodec schemaVersion, appId, domain ("controls"), updatedAtUtc, inputProfileMode, activeSchema, controlMode, mouseSensitivity, menuControllerChord, allowBackgroundControllerInput, promptGlyphMode, isLookYInverted, inputTuning (stickDeadzoneInnerPercent, stickDeadzoneOuterPercent, stickResponseCurve, isStickSwapped, mouseSensitivityY, holdToggleActions, turboActions, turboRateHz, gyroAimMode, gyroSensitivity), hostActionBindings, globalController, perGameController, perGameModern .tmp atomic replace with duplicate/hidden-slot validation, [JsonExtensionData] preservation, and SerializeDirtyCheckJson() idle disk-write suppression
cache\aot-index.json AotCacheManager schemaVersion, entries[] (moduleId, romSha256, engineId, engineVersion, moduleVersion, fileSizeBytes, sha256Hex) .aot-index.lock cross-process mutex + .bak rotation + .tmp.<guid> atomic rename
virtual_registry.json VirtualRegistryAssociationStore .recomp (reEngine.RecompModule), .decomp (reEngine.DecompModule), commandTemplate .tmp atomic replace strictly under APP_ISOLATED_TEST=1
modules\<moduleId>\settings.json Child re* engine (isolated by RecompLaunchPlanBuilder) Delegated to engine contract Contained inside <dataDir>\modules\<moduleId>\
staged_updates\<engineId>\.staging-<ver>\*.part.meta.json & engines\<engineId>\v<Ver>\.ready UpdatePackageApplier .part.meta.json: engineId, version, downloadUrl, sha256Hex, expectedSizeBytes, fileSizeBytes, updatedAtUtc; .ready: engineId, version, completedAtUtc HTTP Range resume + SHA-256 verification + atomic staging directory rename

6. Failure Modes & Resilience

  • Dual-Binary Release Fail-Closed Automation Gate & Binary Purity: reEngine.Host, reEngine.App, AND reEngine.Installer ALL fail closed (ExitCode = 2) when --automation-port is supplied on a Release build; Foundation.Automation.dll, Foundation.UI.dll, and System.Windows.Forms are omitted completely from Release reEngine.Core.dll, reEngine.Host.dll, reEngine.dll, reEngine.Installer.exe, and SharedLibs\reEngine\v0.7.0\.
  • Zip-Slip / Traversal & SSRF Guards: RecompPackageReader.Load, DecompPipelineCoordinator.ParseManifest, SuiteMediaTreeWalker, HdPackResolver, SessionRecoveryLocator, and UpdatePackageApplier.ExtractArchiveSafely reject rooted, symlink/reparse, or ..-escaping paths; UpdatePackageApplier.AssertSafeRemoteUrl blocks file://, loopback, RFC 1918, and link-local/metadata IP ranges.
  • Missing Engine, Crash Fallback & Backend Availability: Missing .recomp engine -> Exit 1; --require-backend [<id>] unavailable -> Exit 6 (BackendUnavailableException); .decomp unbuilt engine -> Exit 3. Abnormal engine exits trigger prompt-first fallback relaunch (TryCrashFallbackRelaunchAsync) + SessionRecoveryLocator artifact discovery.
  • Non-Quitting Host Esc & Clean-Room Violations: HostSessionParityHelper.ApplyNonQuittingEscape never terminates the host process (cancels keybind capture -> closes drawer -> passes Esc to game if bound in perGameModern -> releases relative mouse capture; explicit exit uses Drawer_QuitGame, System_QuitGame, X, or Alt+F4).
  • Offline Update Feeds / Crashes: UpdateCoordinator skips unavailable feeds cleanly (NetworkUnavailable = true, [WARN], 2s per-target poll timeout, Exit 0 unless --strict returns Exit 4). Fatal unhandled exceptions write logs\crashes\crash_reengine_*.json via CrashBundleService.

7. Security & Privacy Model

  • Zero PII & Deterministic Paths: Directory.Build.props enables Deterministic = true and ContinuousIntegrationBuild = true + <PathMap> in Release; release verification and archive exclusions (-xr!data -xr!logs) keep Builds\, Releases\, SharedLibs\, and Archive\ free of PII, machine paths, local workspace configs, .pdb, .env, and *secret*.json.
  • No Network Calls at Rest or Decomp: Zero telemetry servers, zero runtime Ghidra/OpenJDK downloads (OfflineToolchainLocator uses staged toolchain\ only), and zero background daemons (AllowAutoStart = false).
  • Registry & Modal Isolation: WindowsRegistryAssociationStore refuses registry writes when suppressHostMutations: true or APP_ISOLATED_TEST=1 is active; HostDialogService honors FOUNDATION_SUPPRESS_MODALS=1 fail-closed.
  • Apache-2.0 / GPL Separation: stage_offline_toolchain.ps1 and OfflineToolchainLocator reject unstripped ghidra\GPL\ directories and require THIRDPARTY_LICENSES.txt alongside toolchain\.

8. Testing Strategy Map (32 Suites, 163 Unit/Contract Tests + Stage 2 Visible E2E)

Run isolated zero-warning unit & contract tests:

$env:APP_ISOLATED_TEST = "1"
dotnet test Dev\reEngine.slnx -c Release /warnaserror
dotnet test Dev\reEngine.slnx -c Debug -p:ReEngineTestAutomation=true /warnaserror

Run full Stage 2 visible-window sandbox E2E (Stage2V060Probes + Stage2V061ParityProbes + Stage2V070Probes [10-Rail Two-Column Overlay, Tab_QuickActions, Tab_Accessibility, Xbox prompt glyphs, Drawer_QuitGame, deuteranopia + --flash-reduction] + Dual-Binary Release ExitCode = 2):

powershell -NoProfile -ExecutionPolicy Bypass -File Dev\scripts\run_stage2_sandbox_e2e.ps1 -Version 0.7.0
  • Suites (32 total; 29 prior v0.1.0–v0.6.2 suites + 3 added in v0.7.0):
  • Prior (29): ManifestAndResolverTests, DecompAndToolchainTests, DecompProviderAndD4ValidatorTests, AotCacheManagerTests, InstallerAndAppStatusTests, InstallerWizardAutoSortTests, AssociationUpdateAndContainmentTests, UpdateStagingAndTracksTests, UpdateSweepAndTelemetryTests, LauncherAndLaunchPlanTests, SettingsMigrationAndLaunchTests, HostSurfaceAndInputTests, HostUiDrawerAndGateTests, HostReleaseAutomationStripTests, HostMultiBackendAndAudioTests, HostMultiBindInputAndTouchTests, MediaTreeWalkerAndVerifyModuleTests, SyncWaitShutdownAndDecompUiTests, HostViewportGeometryAndPresentersTests, HostMultiPortInputAndHotkeysTests, EngineRoutingAndMediaDiscoveryTests, HostExecutionResilienceAndSettingsSplitTests, HostDisplayVrrFiltersAndCaptureTests, HostAudioDspAndJukeboxTests, AppV060RoutingAndUiTests, EngineResolutionV061AndCrashFallbackTests, HostParityUiScaleMediaGateAndControllerNavTests, HostNonQuittingEscMouseCaptureAndHotkeysTests, HostV062PrelaunchParityTests.
  • Added in v0.7.0 (3): HostV070FocusAndInputTuningTests.cs (focus-loss KBM isolation, background gamepad toggle, radial deadzones, stick curves, stick swap, isLookYInverted, mouseSensitivityY, Hold/Toggle latches, Turbo pulses, 3D Gyro aim, HostInputTuningCodec), HostV070PromptsAccessibilityAnd10RailTests.cs (HostPromptGlyphProvider auto/explicit device switching, HostAccessibilityFilterPass 3x3 daltonization + flash reduction, 10-rail F1DrawerTwoColumnLayout + Drawer_QuitGame + controller rail/pane navigation), AppV070SdlManagerAndPurityTests.cs (ReEngineSdlManagerState + SdlManagerShelfRenderers, HostDialogService FOUNDATION_SUPPRESS_MODALS=1, v0.7.0 CLI parser/router parity, Release binary purity checks).

9. Design Decisions Log (ADR)

  • ADR-014 · 2026-11-29 · v0.7.0 — Early reEngine.App SDL3 Manager Cutover, Pure Win32 Setup, Focus Isolation, Extended Input Tuning, Dynamic Prompt Glyphs, Accessibility Passes & 10-Rail Two-Column Overlay: Synced Foundation v0.6.0 and migrated reEngine.Installer onto pure Win32 WizardControl.RunDialog() (WizardAutomationSurfaceTarget Debug-only) plus reEngine.App onto native SDL3 (ReEngineSdlManagerWindow, HostDialogService), eliminating System.Windows.Forms and Foundation.UI from all Release binaries (reEngine.dll, reEngine.Installer.exe, SharedLibs\reEngine\v0.7.0\); decoupled shouldPauseOnFocusLoss from allowBackgroundControllerInput with strict unfocused KBM isolation (HostSessionInputBridge); added allocation-free HostInputTuningProcessor (12.0x faster), HostPromptGlyphProvider (IHostPromptGlyphProvider), SIMD/fixed-point HostAccessibilityFilterPass (8.2x faster), 10-rail F1DrawerTwoColumnLayout + pinned Drawer_QuitGame, symmetrical v0.7.0 CLI routing (Supports070Routing), .github/workflows/ci.yml, and Dev\docs\CHARTER.md.
  • ADR-013 · 2026-11-23 · v0.6.2 — Thread-Safe Live Overlay Controls, HostSettingsStore Hydration/Dirty-Save, 0 px Jitter F3 HUD & Deferred Synthetic Tap Release: Extracted HostSessionOverlayAndSettingsHelper for thread-safe live SetAotCompileState/SetMediaGateState/UpdateDrawerDescriptor, startup hydration + live F1 dirty-save persistence, Browse error banner retention, 0 px F3 pill width, and 2-frame synthetic non-hotkey tap auto-release.
  • ADR-012 · 2026-11-20 · v0.6.1 — Single-Host Parity Floor, Engine Precedence + Crash Fallback & Unified CLI/Launcher: Delivered HostOverlayTextRenderer (1.45x * uiTextScale), HostActionBindingSet (hostActionBindings + menuControllerChord), HostRelativeMouseController, 4-step non-quitting Esc, Glass Media Gate, HostDrawerControllerNav, EngineCompatibilityEvaluator, SessionRecoveryLocator, and wait-only LauncherJobObjectGuard.
  • ADR-011 · 2026-11-20 · v0.6.0 — Host Resilience, Split Config, 8 Video Filters, Late-Latch VRR & Audio DSP: Split JSON state (settings.json v2, video, audio, controls) with quarantine\/config_history\, added BootCrashSentinel, MediaRamPreloader, ExecutionTierPolicy, 3 display modes, late-latch VRR, 21:9 + HUD anchors, 8 filters, F12 capture, and biquad Audio DSP + Sound Test.
  • ADR-010 · 2026-11-20 · v0.5.0 — HostViewportGeometry, 4-Port / 3-Tier Input, Decoupled IHostAutomationBridge, 3-Way reCart Alias & hostProtocolVersion Routing.
  • ADR-001–ADR-009 (v0.1.0–v0.4.0): Zero-daemon < 2 MB Launcher (AllowAutoStart = false), parent-root app\*.recomp discovery, peer suite layout (StreamItAll\reEngine), shared SDL3 reEngine.Host.dll over PixelOverlayCanvas, native OpenGL/Vulkan/DirectX 12/ParallelCpu presenters, D4_CleanSource, SuiteMediaTreeWalker, and bounded WM_CLOSE --wait teardown.

10. Zero-Touch Extension Playbooks

  1. Adding a New Platform Engine (reCart/reCartOne/reNes, reCart64/re64, reBlast16/reGenesis, reCube): Consume <SHARED_LIBS>\reEngine\v0.7.0\reEngine.Core.dll and reEngine.Host.dll (+ Foundation v0.6.0), implement IHostSessionCallbacks, IHostSessionEventCallbacks, and optional IHostSoundTestProvider / IHostPromptGlyphProvider, optionally inject Debug-only IHostAutomationBridge via HostSessionOptions.AutomationBridgeFactory, declare schemaVersion: 2, hostProtocolVersion: "0.7.0", and legacyEngineIds in engine.manifest.json, and install with .ready under <SuiteRoot>\engines\<engineId>\v<Ver>\.
  2. Adding a Game .recomp / .decomp Module: Ship module.recomp.json / module.decomp.json declaring engineId, supportedEngineTracks, optional incompatibleEngineVersions / defaultFramerateMode, backendId, and executionTierMode, while keeping user data\rom\ media untracked locally.
  3. Adding a New Persisted Settings Field: Add a nullable camelCase property or read via ReEngineSettings.ExtensionData, document it in INTERFACES.md + Dev\settings.example.json, register video/core keys in SettingsDomainStore, and preserve .bak recovery.
  4. Adding a CLI Subcommand/Flag: Add option parsing in RecompLaunchOptionParser, register sync/value tokens in LauncherArgsHelper (keeping optional flags like --require-backend [<id>] explicitly handled), route in RecompLaunchFlagRouter, and add containment assertions for filesystem path options.