diff --git a/UI/DeveloperToolsScreen.cpp b/UI/DeveloperToolsScreen.cpp index fbc2729b37..5509ee29d4 100644 --- a/UI/DeveloperToolsScreen.cpp +++ b/UI/DeveloperToolsScreen.cpp @@ -318,6 +318,14 @@ void DeveloperToolsScreen::CreateAudioTab(UI::LinearLayout *list) { list->Add(new CheckBox(&g_Config.bForceFfmpegForAudioDec, dev->T("Use FFMPEG for all compressed audio"))); } +void DeveloperToolsScreen::CreateNetworkTab(UI::LinearLayout *list) { + using namespace UI; + auto dev = GetI18NCategory(I18NCat::DEVELOPER); + auto ms = GetI18NCategory(I18NCat::MAINSETTINGS); + list->Add(new ItemHeader(ms->T("Networking"))); + list->Add(new CheckBox(&g_Config.bDontDownloadInfraJson, dev->T("Don't download infra-dns.json"))); +} + void DeveloperToolsScreen::CreateGraphicsTab(UI::LinearLayout *list) { using namespace UI; auto dev = GetI18NCategory(I18NCat::DEVELOPER); @@ -441,6 +449,9 @@ void DeveloperToolsScreen::CreateTabs() { AddTab("Graphics", ms->T("Graphics"), [this](UI::LinearLayout *parent) { CreateGraphicsTab(parent); }); + AddTab("Networking", ms->T("Networking"), [this](UI::LinearLayout *parent) { + CreateNetworkTab(parent); + }); AddTab("Audio", ms->T("Audio"), [this](UI::LinearLayout *parent) { CreateAudioTab(parent); }); diff --git a/UI/DeveloperToolsScreen.h b/UI/DeveloperToolsScreen.h index b74d04935f..4aaaa6b47d 100644 --- a/UI/DeveloperToolsScreen.h +++ b/UI/DeveloperToolsScreen.h @@ -23,6 +23,7 @@ private: void CreateTestsTab(UI::LinearLayout *list); void CreateAudioTab(UI::LinearLayout *list); void CreateGraphicsTab(UI::LinearLayout *list); + void CreateNetworkTab(UI::LinearLayout *list); UI::EventReturn OnRunCPUTests(UI::EventParams &e); UI::EventReturn OnLoggingChanged(UI::EventParams &e); diff --git a/assets/infra-dns.json b/assets/infra-dns.json index 5afa5f045b..a2a3252455 100644 --- a/assets/infra-dns.json +++ b/assets/infra-dns.json @@ -1,5 +1,5 @@ { - "comment": "This file contains our built-in DNS used by the Auto mode in Infrastructure. In addition to being shipped, it'll also be hosted on ppsspp.org. Game names below are not important.", + "comment": "This file contains our built-in DNS used by the Auto mode in Infrastructure. In addition to being shipped, it's also hosted on https://metadata.ppsspp.org/infra-dns.json. (Exact game names below are not important).", "default": { "dns": "67.222.156.250", "revival_credits": {