sceNetResolver: Move error codes to enum, modernize logging

This commit is contained in:
Henrik Rydgård committed 2025-04-07 22:16:32 +02:00
1 parent 242fd20798
commit 89c0b5f20b
5 files changed
+119 -85

No files matched your search

+5 -1
View File
@@ -327,7 +327,8 @@ bool LoadAutoDNS(std::string_view json) {
return false;
}
// If dyn_dns is non-empty, try to use it to replace the specified DNS.
// If dyn_dns is non-empty, try to use it to replace the specified DNS server.
// Additionally, this removes all fixed lookups from the table.
// If fails, we just use the dns. TODO: Do this in the background somehow...
const auto &dns = g_infraDNSConfig.dns;
const auto &dyn_dns = g_infraDNSConfig.dyn_dns;
@@ -1182,6 +1183,9 @@ int NetApctl_Term() {
apctlThreadID = 0;
}
// Clear out handlers.
apctlHandlers.clear();
g_netApctlInited = false;
netApctlState = PSP_NET_APCTL_STATE_DISCONNECTED;
return 0;