Implement --no-config-migrate option

This commit is contained in:
Archi
2021-05-20 22:42:30 +02:00
parent 039ea6038a
commit bdf541b058
3 changed files with 13 additions and 0 deletions

View File

@@ -378,6 +378,10 @@ namespace ArchiSteamFarm.Storage {
return (null, null);
}
if (!Program.ConfigMigrate) {
return (globalConfig, null);
}
globalConfig.Saving = true;
string latestJson = JsonConvert.SerializeObject(globalConfig, Formatting.Indented);
globalConfig.Saving = false;