Add in more implementation

This commit is contained in:
zontreck 2024-05-24 13:48:21 -07:00
parent fc0c1c7e7a
commit 1b2ec0e74d
14 changed files with 62 additions and 35 deletions

View file

@ -35,7 +35,6 @@ void main() async {
print("Initializing SteamCMD");
await settings.initializeSteamCmd();
await settings.initializeSteamCmd2FA();
print("Initialized Steamcmd and Proton");
print("Checking for game server updates...");
@ -50,13 +49,20 @@ void main() async {
print(
"Aborting server startup procedure, initial server setup is not yet complete\n\n[ You must log in with the ServerManager to continue ]");
} else {
print("Downloading mods...");
await doDownloadMods(false);
try {
print("Downloading mods...");
await doDownloadMods(false);
print("Scanning mods...");
settings.inst!.mods = await doScanMods();
print("Scanning mods...");
settings.inst!.mods = await doScanMods();
settings.Write();
await settings.subsys.startScheduler();
print("Starting scheduler...");
await settings.subsys.startScheduler();
} catch (E) {
settings.FTS = true;
settings.Write();
}
}
print("Starting up server manager server wrapper");