mirror of https://github.com/ppy/osu
Restore previous exception handling flow for stable path lookup
This commit is contained in:
parent
7c612ec556
commit
3f88340304
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue