mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Restore previous exception handling flow for stable path lookup
This commit is contained in:
@ -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!");
|
||||
|
Reference in New Issue
Block a user