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
1 changed files with 7 additions and 3 deletions

View File

@ -59,10 +59,14 @@ private string getStableInstallPath()
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!");