add repair mode
This commit is contained in:
@@ -64,10 +64,13 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
|
||||
}
|
||||
|
||||
installInfos = await DownloadInstallInfos();
|
||||
result.CurrentVersion = modpackInfo.Version ?? new Version("0.0.0.0");
|
||||
if (options.IgnoreInstalledVersion || modpackInfo.Version == null)
|
||||
result.CurrentVersion = new Version("0.0.0.0");
|
||||
else
|
||||
result.CurrentVersion = modpackInfo.Version;
|
||||
|
||||
// Check install actions
|
||||
if (!exists)
|
||||
if (!exists || options.IgnoreInstalledVersion)
|
||||
{
|
||||
result.IsInstalled = false;
|
||||
|
||||
|
||||
@@ -7,4 +7,5 @@ public class UpdateCheckOptions
|
||||
public bool AllowUpdaterAfterInstall { get; set; } = true;
|
||||
public Side Side { get; set; } = Side.Client;
|
||||
public bool IncludeExtras { get; set; }
|
||||
public bool IgnoreInstalledVersion { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user