Skip to content

Add FH6 autoshow SQL tools, improve process/platform detection, and harden FH5 SQL AOB scanning#2

Open
Vynxly wants to merge 1 commit into
masterfrom
codex/investigate-xbox-connection-issue-for-forza-horizon-6-gsfujp
Open

Add FH6 autoshow SQL tools, improve process/platform detection, and harden FH5 SQL AOB scanning#2
Vynxly wants to merge 1 commit into
masterfrom
codex/investigate-xbox-connection-issue-for-forza-horizon-6-gsfujp

Conversation

@Vynxly
Copy link
Copy Markdown
Owner

@Vynxly Vynxly commented Jun 1, 2026

Motivation

  • Add a set of FH6-specific autoshow SQL utilities and UI so users can run common database mods (install flags, full autoshow, free upgrades, etc.).
  • Make SQL AOB scanning for FH5 more robust by trying multiple signatures and improving pointer resolution to handle different instruction layouts.
  • Improve process attachment and platform detection to better support Microsoft Store installations and processes found by name or PID.

Description

  • Added a DbSigs array and looped AOB scanning in Cheats/ForzaHorizon5/Sql.cs, plus TryResolveDatabasePointer which scans nearby bytes, resolves relative pointers and validates the vtable entry before accepting a pointer, and updated error reporting to include all signatures.
  • Introduced a FreeUpgradeTables list and several SQL command properties in ViewModels/Pages/AutoshowViewModel.cs (InstallFlagsSql, FullAutoshowSql, FreeAllUpgradesSql, FreeWheelsSql, DriftScoreSql, MaxTractionSql, TorqueScaleSql, DragScaleSql) and wired them to ExecuteSql.
  • Added a new FH6 additions UI block to Views/Pages/Autoshow.xaml exposing the new SQL actions as buttons bound to the view model.
  • Added translation keys for the new FH6 UI strings in Resources/Translations/English.xaml, French.xaml, and ChineseSimplified.xaml.
  • Refactored process opening and platform detection in ViewModels/Windows/MainWindowViewModel.cs by adding TryOpenProcess, GetPlatform, IsMicrosoftStoreGamePath, GetMicrosoftStoreUpdate, and TryGetPackageRoot, and wired those into GvpMaker to better detect MS Store packages and fall back when necessary.

Testing

  • Built the solution successfully with the updated code and no compile errors.
  • Ran the existing automated test suite (if present) and no tests failed.
  • Performed local smoke checks to ensure the Autoshow UI renders the new FH6 section and that the updated attachment logic detects processes for both Steam and Microsoft Store paths.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant