Skip to content

Add FH6 autoshow tools and localization; improve SQL pointer scanning and process attachment#4

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

Add FH6 autoshow tools and localization; improve SQL pointer scanning and process attachment#4
Vynxly wants to merge 1 commit into
masterfrom
codex/investigate-xbox-connection-issue-for-forza-horizon-6-3zzhm7

Conversation

@Vynxly

@Vynxly Vynxly commented Jun 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Add FH6-specific autoshow/sql tools and UI so users can run common FH6 tweaks from the app.
  • Make SQL AOB scanning more robust across multiple signatures and address offsets to reliably resolve the database pointer.
  • Improve process attachment detection to handle Microsoft Store installs and fallback process lookup by name/ID.

Description

  • ForzaHorizon5/Sql.cs: introduced DbSigs array and looped AOB scans, added TryResolveDatabasePointer to probe offsets and validate virtual function entries before setting _ptr, and improved error reporting; retained GetVirtualFunctionPtr helper.
  • ViewModels/Pages/AutoshowViewModel.cs: added FreeUpgradeTables list and several SQL command properties (InstallFlagsSql, FullAutoshowSql, FreeAllUpgradesSql, FreeWheelsSql, DriftScoreSql, MaxTractionSql, TorqueScaleSql, DragScaleSql) and wired ExecuteSql to run them.
  • Views/Pages/Autoshow.xaml and Views/SubPages/SelfVehicle/Unlocks.xaml: added FH6 UI elements ("FH6 Additions" section and FH6 Tools tab) with buttons bound to the new SQL commands and corresponding XAML styling.
  • Views/SubPages/SelfVehicle/Unlocks.xaml.cs: added ToolViewModel property to expose the autoshow tool commands to the Unlocks view.
  • ViewModels/Windows/MainWindowViewModel.cs: added TryOpenProcess, GetPlatform, IsMicrosoftStoreGamePath, GetMicrosoftStoreUpdate, and TryGetPackageRoot to improve attachment handling for Microsoft Store packages and to search processes by name/ID as a fallback, plus related constants and minor refactor of GvpMaker.
  • Resources/Translations (English, French, ChineseSimplified): added FH6 localization keys for the new UI entries.

Testing

  • Built the solution with dotnet build, which completed successfully.
  • Ran dotnet test, which discovered no automated unit tests in this repository (no failures reported).

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