diff --git a/DeliCounter/Backend/ModRepository.cs b/DeliCounter/Backend/ModRepository.cs index bcbc6e3..f46f5a7 100644 --- a/DeliCounter/Backend/ModRepository.cs +++ b/DeliCounter/Backend/ModRepository.cs @@ -311,6 +311,13 @@ private void LoadModCache() } } + public void Reset() + { + if (Repo is not null) Repo.Dispose(); + if (Directory.Exists(RepoPath)) Directory.Delete(RepoPath, true); + Refresh(); + } + /// /// Writes the installed mods cache to the game folder /// diff --git a/DeliCounter/Controls/ModRepositoryStatus.xaml b/DeliCounter/Controls/ModRepositoryStatus.xaml index 6701a89..d91cf2f 100644 --- a/DeliCounter/Controls/ModRepositoryStatus.xaml +++ b/DeliCounter/Controls/ModRepositoryStatus.xaml @@ -18,6 +18,9 @@ Please wait... -