Do not validate game files on startup

This commit is contained in:
zontreck 2023-11-05 00:26:00 -07:00
parent fee32c7701
commit 0d15e6a41d
2 changed files with 3 additions and 3 deletions

View file

@ -113,7 +113,7 @@ class Settings {
.existsSync();
}
Future<ProcessResult> RunUpdate() {
Future<ProcessResult> RunUpdate({bool valid = true}) {
return Process.run(getSteamCmd(), [
"+@sSteamCmdForcePlatformType",
"windows",
@ -124,7 +124,7 @@ class Settings {
"+app_update",
"443030",
"public",
"validate",
if (valid) "validate",
"+quit"
]);
}

View file

@ -35,7 +35,7 @@ class StateMachine {
} else if (currentState == States.Starting) {
// Server startup in progress
Settings settings = Settings();
await settings.RunUpdate();
await settings.RunUpdate(valid: false);
await doDownloadMods(settings.getModPath());
settings.inst!.mods = await doScanMods(settings.getModPath());