mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Restore previous exception handling flow for stable path lookup
This commit is contained in:
parent
7c612ec556
commit
3f88340304
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user