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();
|
.existsSync();
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<ProcessResult> RunUpdate() {
|
Future<ProcessResult> RunUpdate({bool valid = true}) {
|
||||||
return Process.run(getSteamCmd(), [
|
return Process.run(getSteamCmd(), [
|
||||||
"+@sSteamCmdForcePlatformType",
|
"+@sSteamCmdForcePlatformType",
|
||||||
"windows",
|
"windows",
|
||||||
|
@ -124,7 +124,7 @@ class Settings {
|
||||||
"+app_update",
|
"+app_update",
|
||||||
"443030",
|
"443030",
|
||||||
"public",
|
"public",
|
||||||
"validate",
|
if (valid) "validate",
|
||||||
"+quit"
|
"+quit"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ class StateMachine {
|
||||||
} else if (currentState == States.Starting) {
|
} else if (currentState == States.Starting) {
|
||||||
// Server startup in progress
|
// Server startup in progress
|
||||||
Settings settings = Settings();
|
Settings settings = Settings();
|
||||||
await settings.RunUpdate();
|
await settings.RunUpdate(valid: false);
|
||||||
await doDownloadMods(settings.getModPath());
|
await doDownloadMods(settings.getModPath());
|
||||||
settings.inst!.mods = await doScanMods(settings.getModPath());
|
settings.inst!.mods = await doScanMods(settings.getModPath());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue