Skip to content

Guard against conflicting SteamUI overview hook targets - #9

Open
Meth0ds wants to merge 1 commit into
madoiscool:mainfrom
Meth0ds:codex/guard-conflicting-overview-hooks
Open

Meth0ds wants to merge 1 commit into
madoiscool:mainfrom
Meth0ds:codex/guard-conflicting-overview-hooks

Conversation

@Meth0ds

@Meth0ds Meth0ds commented Nov 15, 2026 •

Copy link
Copy Markdown

The SteamUI metadata for build 1794536281 maps both FillInAppOverview and BuildCompleteAppOverviewChange to 0x634280. These hooks have incompatible argument types: the date-added hook treats its third argument as a CSteamApp*, whereas the snapshot builder receives an optional callback slot there. Attaching both hooks to the same address can make the date hook interpret an unrelated pointer as an app, and leaves the real per-app overview function unhooked.

Resolve the two targets before opening the detour transaction. If they are the same non-null address, skip the FillInAppOverview hook, log the conflict, and show an actionable warning. Continue installing the snapshot-builder and frame hooks. Normal distinct targets and missing-target behavior are retained. Uninstall already checks whether a hook was installed.

This is deliberately limited to this incompatible pair; duplicate RVAs can legitimately appear under other metadata names, so the generic pattern loader is unchanged.

This guard prevents installing the incorrect date hook; it does not infer or repair a bad RVA. The separate metadata correction is prepared at madoiscool/steam-monitor@pattern...Meth0ds:steam-monitor:codex/fix-steamui-date-added (correct FillInAppOverview: 0x63B0D0 for SHA-256 2dfb0a5d50dd90667549cc7d413c7bfb0794c9af4ebaf08bf1cf7d938a11ea93).

Validation:

  • Compiled and ran a C++20 harness using the actual Install() body with the hook backend and diagnostics mocked. All five cases passed: conflicting addresses, distinct addresses, missing date hook, missing snapshot hook, and both missing. Checked attached hook names, warning count, and transaction begin/commit.
  • The corrected metadata's signature matches exactly once in the installed DLL, at a PE runtime-function start.
  • git diff --check passes.
  • Live metadata fix verified after restarting Steam with the existing BetterSteamTools DLL: the UNCATEGORIZED (421) collection, sorted by Date Added to Library, now starts with City Transport Simulator 2026 and Transport Fever 3 dated Nov 15, 2026, followed by SimRail and ZED ZONE dated Nov 14, 2026. Those titles previously showed Jan 11, 2017. This validates the separate metadata correction; the new guard was tested with the mocked-backend harness, not an installed rebuilt DLL.
  • Full MSVC DLL build was not run locally. GitHub Actions requires maintainer approval for this fork's workflow.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant