Skip to content

Comments

Add purchased_keys.txt support#432

Merged
Detanup01 merged 2 commits intoDetanup01:devfrom
Rustbeard86:feature/purchased-keys
Feb 16, 2026
Merged

Add purchased_keys.txt support#432
Detanup01 merged 2 commits intoDetanup01:devfrom
Rustbeard86:feature/purchased-keys

Conversation

@Rustbeard86
Copy link

Implements the TODO from FillProofOfPurchaseKey to read CD keys from purchased_keys.txt.

Simple format: one key per line as AppID=KEY

480=AAAAA-BBBBB-CCCCC-DDDDD
218620=XYZFJ-13370-98765

Falls back to the existing placeholder if no entry is found, so nothing breaks.

Read per-app proof of purchase keys from steam_settings/purchased_keys.txt
using the format: AppId=KEY (e.g. 480=AAAAA-BBBBB-CCCCC-DDDDD).

- Add purchased_keys map, setter and getter to Settings
- Add parse_purchased_keys() parser in settings_parser.cpp
- Wire key lookup into RequestAppProofOfPurchaseKey,
  RequestAppProofOfPurchaseKey_OLD, and RequestAllProofOfPurchaseKeys
- Owned apps without an entry still get the default placeholder key
- Remove TODO comments from FillProofOfPurchaseKey
Copy link
Collaborator

@universal963 universal963 left a comment

Choose a reason for hiding this comment

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

Add an example file too if you'd like.

@Rustbeard86
Copy link
Author

Rustbeard86 commented Feb 16, 2026

Add an example file too if you'd like.

Are you asking me to include an example purchased_keys.txt?
If so, would you like the PR to have this in a location that packaging scripts can locate and also update the packaging scripts to include this example file?

I've updated the PR to include these changes proactively.

Example file follows existing .EXAMPLE format, placed inside steam_settings.EXAMPLE
example file is verbose but follows existing example file placeholder and instructions format.
Updated README.realease.md to include a section about the new file, following existing structure.

@Detanup01 Detanup01 merged commit 82e0d35 into Detanup01:dev Feb 16, 2026
64 checks passed
@poemplayer
Copy link

How to get the purchased_keys.txt for the games I’ve already bought? Does anyone know which games require this purchased_keys.txt?

@Rustbeard86
Copy link
Author

How to get the purchased_keys.txt for the games I’ve already bought? Does anyone know which games require this purchased_keys.txt?

Typically, through steam you right click on the game and can copy the key to clipboard, or there used to be an option to show it.
image
The images shows where to click to get the key.

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.

4 participants