From c973b84a68b3a1f154ba430cc3c88cbe998eea94 Mon Sep 17 00:00:00 2001 From: Piotrekol <4990365+Piotrekol@users.noreply.github.com> Date: Tue, 7 Jun 2022 21:13:06 +0200 Subject: [PATCH] Misc: Handle detection of stale osu! locations --- App/Presenters/Controls/StartupPresenter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/Presenters/Controls/StartupPresenter.cs b/App/Presenters/Controls/StartupPresenter.cs index 7148fb1..20a9a4c 100644 --- a/App/Presenters/Controls/StartupPresenter.cs +++ b/App/Presenters/Controls/StartupPresenter.cs @@ -166,7 +166,7 @@ private void LoadDatabase(CancellationToken cancellationToken) ? osuFileIo.OsuPathResolver.GetOsuDir() : _startupSettings.OsuLocation; - if (string.IsNullOrEmpty(osuDirectory)) + if (string.IsNullOrEmpty(osuDirectory) || !Directory.Exists(osuDirectory)) { _view.LoadDatabaseStatusText = "osu! could not be found. Select osu! location manually"; return;