Skip to content
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

Keep infra-dns.json updated from metadata.ppsspp.org #19913

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

hrydgard
Copy link
Owner

@hrydgard hrydgard commented Jan 23, 2025

Adds basic file caching support to the download manager.

Now updates it dynamically from http://metadata.ppsspp.org/infra-dns.json (I do need to remember to keep it up to date now when making changes...).

If the download fails (server down or something) fallbacks first to cache, then to the supplied file in /assets.

Cache expires after 24h (but as mentioned, will still be used if the download fails).

The file is fetched during apctl init, hopefully early enough. Would be interesting to see if some game breaks, if so we can fetch also from sceUtility if a game tries to fetch DNS from there first...

@hrydgard hrydgard added this to the v1.19.0 milestone Jan 23, 2025
@hrydgard hrydgard force-pushed the download-infra-json branch from 9451cb4 to 7fa3b48 Compare January 23, 2025 13:00
@hrydgard hrydgard merged commit adbd721 into master Jan 23, 2025
19 checks passed
@hrydgard hrydgard deleted the download-infra-json branch January 23, 2025 13:19
@anr2me
Copy link
Collaborator

anr2me commented Jan 24, 2025

If we want to fetch it earlier, we don't need to wait until ApctlInit (in case it was too late for some games) and just detects whether WLAN is enabled or not during the game startup, but might not works if the player forgot to enable WLAN when running the game and enabled it later.

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.

2 participants