Refactor a bit, preparing for async download

This commit is contained in:
Henrik Rydgård committed 2026-03-05 14:30:32 +01:00
1 parent a0327ff5d5
commit cc49e5079d
6 files changed
+36 -35

No files matched your search

+5
View File
@@ -327,6 +327,8 @@ static void ClearFailedGPUBackends() {
File::Delete(failedBackendsFile);
}
void AdhocLoadServerList();
void NativeInit(int argc, const char *argv[], const char *savegame_dir, const char *external_dir, const char *cache_dir) {
net::Init(); // This needs to happen before we load the config. So on Windows we also run it in Main. It's fine to call multiple times.
@@ -346,6 +348,9 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
// Make sure UI state is MENU.
ResetUIState();
// We kind of have to do this during startup, since these are visible in settings.
AdhocLoadServerList();
bool skipLogo = false;
setlocale( LC_ALL, "C" );
std::string user_data_path = savegame_dir;