mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 05:03:35 +02:00
When (successfully) using dyn_dns, remove fixed lookups.
Additionally some various cleanup.
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user