When (successfully) using dyn_dns, remove fixed lookups.

Additionally some various cleanup.
This commit is contained in:
Henrik Rydgård
2025-04-08 00:32:40 +02:00
parent 1d97dfe432
commit ebcf6be42c
5 changed files with 18 additions and 17 deletions
+1 -2
View File
@@ -116,13 +116,12 @@ int PSPNetconfDialog::Update(int animSpeed) {
std::string json;
if (!jsonReady_ && PollInfraJsonDownload(&json)) {
if (!json.empty()) {
INFO_LOG(Log::sceNet, "PollInfraJsonDownload returned a string");
if (!LoadAutoDNS(json)) {
// If the JSON parse fails, throw away the cache file at least.
ERROR_LOG(Log::sceNet, "Failed to parse bad json. Deleting cache file.");
DeleteAutoDNSCacheFile();
} else {
INFO_LOG(Log::sceNet, "Got and processed the AutoDNS json.");
DEBUG_LOG(Log::sceNet, "Got and processed the AutoDNS json.");
}
} else {
// TODO: Show a notice?