Skip to content

feat: per-game profiles for Steam games - #170

Merged
lippdev merged 4 commits into
mainfrom
feat/per-game-profiles
Oct 29, 2026
Merged

lippdev merged 4 commits into
mainfrom
feat/per-game-profiles

Conversation

@lippdev

@lippdev lippdev commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Closes #69.

Each Steam game can keep its own resolution/refresh rate, HDR, FPS limit and audio output. The profile is applied when the game starts during a session and undone when it closes.

How it works

  • Detection: ConsoleEngine.TickGameProfile reads Steam's RunningAppID (the same registry value SteamShutdown already uses) on every Tick, in all launch modes. So a Steam game is caught whether it was opened from Big Picture, Playnite or the Xbox app. GameProfiles.Change (pure, tested) turns two reads into Started / Ended / Switched; an unknown read changes nothing.
  • Start: the engine reads a baseline (current mode, HDR, FPS limit and audio of the game screen). If the game has a profile, it applies each set field on its own (ApplyFocusMode, SetHdrFromMenu, Rtss.SetLimit, Audio.SetOutput). A part that fails is logged in Portuguese and the rest still apply; an audio output that is gone is skipped.
  • Close / switch: when a profile was applied (or saved during that game), the baseline is applied back. Back to the PC still runs the normal full restore, which already undoes the mode, HDR, FPS and audio. The profile state is just cleared.
  • Creating: a new Game profile row in the session menu, shown only while a Steam game runs. It shows ": no profile / profile saved", and its picker offers Save the current settings for and Delete the profile of . Saving captures what the game screen uses right then, and the game name comes from Steam's registry or its appmanifest_*.acf (parsed in GameProfiles, tested).
  • Managing:
    • Settings → Per-game profiles (an expander listing each game with a summary and a Delete button);
    • console System → When entering console mode → Per-game profiles (a picker to delete; disabled when empty).
  • Config: AppConfig.GameProfiles (an empty list for older configs). Strings are in all 6 catalogs, the GUIDE paragraph is in all 6 languages, and TESTING.md has a checklist.

Verified

  • dotnet test: 510 passed (15 new: change detection, upsert/remove/find, summary, manifest/library parsing, JSON round-trip, old configs).
  • The app builds on Windows (x64 Debug) with 0 errors and no new warnings.
  • Not verified on hardware: applying and undoing a profile with a real game, mode/HDR/FPS/audio switching mid-session, and the session menu row. This was left unrun on purpose (the owner was using the PC); see the TESTING.md checklist.

Note: the README roadmap line still lists #69 (and #30) as planned. I left it to the release prep so the three open feature PRs don't conflict on that line.

🤖 Generated with Claude Code

lippdev and others added 2 commits October 21, 2026 10:57
While a session runs, Steam's running game (RunningAppID) is read on
every Tick. A game with a profile gets its resolution, HDR, FPS limit
and audio output applied when it starts, and the game screen goes back
to how it was when it closes or another game starts. Profiles are
saved from the session menu ("Game profile" row, shown while a Steam
game runs) from what the game screen uses at that moment, and listed
and deleted in Settings and in the console System tab. Each part is
applied on its own, so one that fails is logged and the rest still
apply; going back to the PC restores the desk as before.

Closes #69

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes Per-game Steam profiles from detection and application through restoration, management UI, localization, documentation, and pure-logic tests.

  • Profile lifecycle ConsoleEngine detects game starts, ends, and switches, applies configured display/HDR/FPS/audio values, and restores the captured game baseline.
  • Profile management The session menu saves/removes the current game's profile; desktop Settings and console System provide saved-profile lists and deletion.
  • Steam and config support Profiles persist in AppConfig, while game names are resolved from Steam registry data or library manifests.
  • Supporting updates Localization catalogs, paired guides, the manual testing checklist, changelogs, and unit tests cover the feature.

Pullfrog  | View workflow run | Using gpt-6-luna | 𝕏

# Conflicts:
#	CHANGELOG.en-US.md
#	CHANGELOG.md
#	docs/GUIDE.de-DE.md
#	docs/GUIDE.es-ES.md
#	docs/GUIDE.fr-FR.md
#	docs/GUIDE.md
#	docs/GUIDE.pt-BR.md
#	docs/GUIDE.ru-RU.md
#	docs/TESTING.md
#	src/ConsoleMode/Models/Models.cs
#	src/ConsoleMode/Resources/Strings.de-DE.json
#	src/ConsoleMode/Resources/Strings.en-US.json
#	src/ConsoleMode/Resources/Strings.es-ES.json
#	src/ConsoleMode/Resources/Strings.fr-FR.json
#	src/ConsoleMode/Resources/Strings.pt-BR.json
#	src/ConsoleMode/Resources/Strings.ru-RU.json
#	src/ConsoleMode/Services/ConsoleEngine.cs
#	src/ConsoleMode/Services/LocalizationService.cs
#	src/ConsoleMode/ViewModels/MainViewModel.cs
#	src/ConsoleMode/Views/ConsoleHomeView.xaml
#	src/ConsoleMode/Views/SettingsView.xaml
#	tests/ConsoleMode.Tests/ConsoleMode.Tests.csproj

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

This merge leaves the Console System view's XAML malformed, which is expected to prevent the Windows app from building.

Reviewed changes The merge from current main was reviewed for its net changes since the prior Pullfrog review.

  • Merged current main The merge incorporated the latest Console System settings markup alongside the per-game profile row.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6-luna | 𝕏

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lippdev
lippdev merged commit 76aae71 into main Oct 29, 2026
5 checks passed
@lippdev lippdev mentioned this pull request Oct 29, 2026
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.

Per-game profiles (resolution, HDR, audio per game)

1 participant