Skip to content

Achievements: Separate token into its own secrets.ini file #13102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

RedPanda4552
Copy link
Contributor

Description of Changes

Creates a separate secrets.ini file for storing sensitive or privileged information. Adds the RetroAchievements login token to this file, removing it from the base PCSX2.ini.

Please give this one a very thorough grilling on code review, I do not know if I did this right, I probably have some kind of unsafe access somewhere, something something threading and locks and internal vs external core/host stuff.

Rationale behind Changes

Makes it safer to share actual settings ini files without potentially compromising RetroAchievements sessions tokens.

Suggested Testing Steps

Try logging in to RetroAchievements, verify your login is respected across restarts, check if your token is still present in your old PCSX2.ini file (this one might need a separate action to remove but I'm not sure how we go about that, tbd).

Did you use AI to help find, test, or implement this issue or feature?

No, and I'm not angry, just disappointed that we have to ask people.

Copy link
Contributor

@chaoticgd chaoticgd left a comment

Choose a reason for hiding this comment

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

Not a thorough review, just some stuff that I noticed.

@lightningterror lightningterror marked this pull request as draft August 16, 2025 01:43
@RedPanda4552
Copy link
Contributor Author

Made some adjustments per chaotic's feedback. Token should now remove itself from the main file if already present, secrets.ini should auto generate when it does so on boot. Also fixed the function mixup, added timer and mutex, and generally made it a bit cleaner, and I think properly locking said mutex now.

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

Successfully merging this pull request may close these issues.

3 participants