add repair mode

This commit is contained in:
2025-04-23 14:45:22 +02:00
parent e14dedc924
commit f19974599f
4 changed files with 55 additions and 15 deletions

View File

@@ -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;