Skip to content

Commit

Permalink
Misc: Handle detection of stale osu! locations
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrekol committed Jun 7, 2022
1 parent 2a4788c commit c973b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/Presenters/Controls/StartupPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c973b84

Please sign in to comment.