@@ -348,8 +348,11 @@ bool LoadAutoDNS(std::string_view json) {
348
348
if (inet_ntop (ptr->ai_family , &(((struct sockaddr_in *)ptr->ai_addr )->sin_addr ), ipstr, sizeof (ipstr)) != 0 ) {
349
349
INFO_LOG (Log::sceNet, " Successfully resolved '%s' to '%s', overriding DNS." , dyn_dns.c_str (), ipstr);
350
350
if (g_infraDNSConfig.dns != ipstr) {
351
- WARN_LOG (Log::sceNet, " Replacing specified DNS IP %s with dyndns %s!" , g_infraDNSConfig.dns .c_str (), ipstr);
351
+ INFO_LOG (Log::sceNet, " Replacing specified DNS IP %s with dyndns %s!" , g_infraDNSConfig.dns .c_str (), ipstr);
352
352
g_infraDNSConfig.dns = ipstr;
353
+ // If dyndns is working, we do not need the fixed lookups. So let's kick them.
354
+ INFO_LOG (Log::sceNet, " Clearing fixed DNS lookups." );
355
+ g_infraDNSConfig.fixedDNS .clear ();
353
356
} else {
354
357
INFO_LOG (Log::sceNet, " DynDNS: %s already up to date" , g_infraDNSConfig.dns .c_str ());
355
358
}
@@ -382,14 +385,18 @@ void StartInfraJsonDownload() {
382
385
WARN_LOG (Log::sceNet, " json is already being downloaded. Still, starting a new download." );
383
386
}
384
387
385
- const char *acceptMime = " application/json, text/*; q=0.9, */*; q=0.8" ;
386
- g_infraDL = g_DownloadManager.StartDownload (jsonUrl, Path (), http::RequestFlags::Cached24H, acceptMime);
388
+ if (!g_Config.bDontDownloadInfraJson ) {
389
+ const char * const acceptMime = " application/json, text/*; q=0.9, */*; q=0.8" ;
390
+ g_infraDL = g_DownloadManager.StartDownload (jsonUrl, Path (), http::RequestFlags::Cached24H, acceptMime);
391
+ }
387
392
}
388
393
389
394
bool PollInfraJsonDownload (std::string *jsonOutput) {
390
395
if (!g_Config.bInfrastructureAutoDNS ) {
391
396
INFO_LOG (Log::sceNet, " Auto DNS disabled, returning success" );
392
397
jsonOutput->clear ();
398
+ // In case there's an old request, get rid of it.
399
+ g_infraDL.reset ();
393
400
return true ;
394
401
}
395
402
@@ -402,6 +409,8 @@ bool PollInfraJsonDownload(std::string *jsonOutput) {
402
409
return true ; // A clear output but returning true means something vent very wrong.
403
410
}
404
411
*jsonOutput = std::string ((const char *)jsonStr.get (), jsonSize);
412
+ // In case there's an old request, get rid of it.
413
+ g_infraDL.reset ();
405
414
return true ;
406
415
}
407
416
@@ -871,7 +880,7 @@ static u32 sceNetTerm() {
871
880
872
881
// Give time to make sure everything are cleaned up
873
882
hleEatMicro (adhocDefaultDelay);
874
- return hleLogWarning (Log::sceNet, retval, " at %08x " , currentMIPS-> pc );
883
+ return hleLogInfo (Log::sceNet, retval);
875
884
}
876
885
877
886
/*
@@ -920,7 +929,7 @@ static int sceNetInit(u32 poolSize, u32 calloutPri, u32 calloutStack, u32 netini
920
929
return hleLogError (Log::sceNet, SCE_KERNEL_ERROR_NO_MEMORY, " unable to allocate pool" );
921
930
}
922
931
923
- WARN_LOG (Log::sceNet, " sceNetInit(poolsize=%d, calloutpri=%i, calloutstack=%d, netintrpri=%i, netintrstack=%d) at %08x" , poolSize, calloutPri, calloutStack, netinitPri, netinitStack, currentMIPS->pc );
932
+ INFO_LOG (Log::sceNet, " sceNetInit(poolsize=%d, calloutpri=%i, calloutstack=%d, netintrpri=%i, netintrstack=%d) at %08x" , poolSize, calloutPri, calloutStack, netinitPri, netinitStack, currentMIPS->pc );
924
933
925
934
netMallocStat.pool = poolSize - 0x20 ; // On Vantage Master Portable this is slightly (32 bytes) smaller than the poolSize arg when tested with JPCSP + prx files
926
935
netMallocStat.maximum = 0x4050 ; // Dummy maximum foot print
@@ -1356,7 +1365,7 @@ static int NetApctl_AddHandler(u32 handlerPtr, u32 handlerArg) {
1356
1365
return retval;
1357
1366
}
1358
1367
apctlHandlers[retval] = handler;
1359
- WARN_LOG (Log::sceNet, " Added Apctl handler(%x, %x): %d" , handlerPtr, handlerArg, retval);
1368
+ INFO_LOG (Log::sceNet, " Added Apctl handler(%x, %x): %d" , handlerPtr, handlerArg, retval);
1360
1369
}
1361
1370
else {
1362
1371
ERROR_LOG (Log::sceNet, " Existing Apctl handler(%x, %x)" , handlerPtr, handlerArg);
0 commit comments