Make the adhoc server list data driven

This commit is contained in:
Henrik Rydgård committed 2026-03-05 15:15:25 +01:00
1 parent 2a1cefb58b
commit 962d132e5f
8 files changed
+168 -21

No files matched your search

+1 -1
View File
@@ -409,7 +409,7 @@ bool PollInfraJsonDownload(std::string *jsonOutput) {
std::unique_ptr<uint8_t[]> jsonStr(g_VFS.ReadFile("infra-dns.json", &jsonSize));
if (!jsonStr) {
jsonOutput->clear();
return true; // A clear output but returning true means something vent very wrong.
return true; // A clear output but returning true means something went very wrong.
}
*jsonOutput = std::string((const char *)jsonStr.get(), jsonSize);
// In case there's an old request, get rid of it.