rpcs3-sa: keep the wiki config database fresh - #3193
Open
xiaodoudou wants to merge 1 commit into
Open
Conversation
RPCS3 applies per-game settings from a wiki-curated config database (GuiConfigs/config_database.dat) at boot, including headless boots, but only the desktop GUI ever downloads that file, and on these builds the GUI never runs, so games launch without the curated fixups. Fetch the database at launch when the cached copy is missing or older than a week. Offline launches fail fast on the connect timeout, and the download is validated before it replaces the cached file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GuiConfigs/config_database.dat) at boot, including--no-guiboots, but only the desktop GUI ever downloads that file. Since ROCKNIX launches games headless, the file never exists and games boot without the curated fixups (Write Color Buffers for Demon's Souls, frame limit modes for the Tales games, and so on). This change fetches the database at game launch when the cached copy is missing or older than a week, so every user gets the wiki-recommended per-game settings automatically.Testing
Found database config for: 'BLES01815'andApplying database config, and the effective config picks up the database'sFrame limit: PS3 Nativefor Tales of Xillia. With the API unreachable, curl aborts in 3.0 s (exit 28) and the game boots normally with the cached copy.Additional Context
.tmpfile and is checked for the expected"games"key before replacing the cached copy, so captive portals or truncated downloads cannot corrupt a working database.AI Usage
Did you use AI tools to help write this code? YES