Do not validate game files on startup
This commit is contained in:
parent
fee32c7701
commit
0d15e6a41d
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue