Skip to content

feat: support multiple Steam accounts - #42

Merged
yanekyuk merged 11 commits into
nextfrom
feat/multi-steam-account
Apr 3, 2026
Merged

feat: support multiple Steam accounts#42
yanekyuk merged 11 commits into
nextfrom
feat/multi-steam-account

Conversation

@yanekyuk

@yanekyuk yanekyuk commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Implements #28.

Summary

  • Adds SteamAccount type and read_steam_accounts() to parse loginusers.vdf, resolving SteamID64 → display name mappings
  • Stores preferred_steam_account: Option<u64> (SteamID64) in config.toml; read_launch_options uses it to target the right userdata/ directory, falling back to the most-recently-modified heuristic
  • First-run flow: prompts users with 2+ accounts to pick one; auto-selects silently if only one account exists
  • Settings screen: new Steam Account field (field 3, cycle with ←/→) showing PersonaName (AccountName) or Auto (most recent)

Test Plan

  • cargo test passes (60 tests)
  • On a machine with multiple Steam accounts, first-run shows the account picker after the library setup step
  • On a machine with one account, no picker appears and the account is auto-selected
  • Settings screen shows the Steam Account field; ←/→ cycles accounts; Esc saves
  • Launch options display uses the preferred account's localconfig.vdf
  • Existing config.toml without preferred_steam_account deserializes cleanly (field defaults to None)

@yanekyuk yanekyuk changed the title feat: support multiple Steam accounts (closes #28) feat: support multiple Steam accounts Apr 3, 2026
@yanekyuk
yanekyuk force-pushed the feat/multi-steam-account branch from 200f73d to 4e6e9b2 Compare April 3, 2026 06:52
@yanekyuk
yanekyuk merged commit c2d1a99 into next Apr 3, 2026
4 checks passed
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