Lots of logging and cleanup.

This commit is contained in:
Henrik Rydgård committed 2025-04-07 21:40:52 +02:00
1 parent ec6ea05c9b
commit 5f7b698012
8 files changed
+135 -58

No files matched your search

+2
View File
@@ -59,6 +59,7 @@ int PSPNetconfDialog::Init(u32 paramAddr) {
if (ReadStatus() != SCE_UTILITY_STATUS_NONE)
return SCE_ERROR_UTILITY_INVALID_STATUS;
NOTICE_LOG(Log::sceNet, "PSPNetConfDialog Init");
// Kick off a request to the infra-dns.json since we'll need it later.
StartInfraJsonDownload();
@@ -114,6 +115,7 @@ 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.");