1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00

Restore previous exception handling flow for stable path lookup

This commit is contained in:
Dean Herbert 2021-01-15 15:17:38 +09:00
parent 7c612ec556
commit 3f88340304

View File

@ -59,10 +59,14 @@ namespace osu.Desktop
if (OperatingSystem.IsWindows())
{
stableInstallPath = getStableInstallPathFromRegistry();
try
{
stableInstallPath = getStableInstallPathFromRegistry();
if (checkExists(stableInstallPath))
return stableInstallPath;
if (!string.IsNullOrEmpty(stableInstallPath) && checkExists(stableInstallPath))
return stableInstallPath;
}
catch { }
}
stableInstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"osu!");