mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
When (successfully) using dyn_dns, remove fixed lookups.
Additionally some various cleanup.
This commit is contained in:
1 parent
1d97dfe432
commit
ebcf6be42c
5 files changed
+18
-17
No files matched your search
@@ -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