Make registry checking work again

This commit is contained in:
smoogipoo
2017-11-22 20:02:31 +09:00
parent 05aa6faf5e
commit d364603e45
3 changed files with 2 additions and 10 deletions

View File

@ -10,10 +10,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Platform;
using osu.Game;
using OpenTK.Input;
#if NET_FRAMEWORK
using Microsoft.Win32;
#endif
namespace osu.Desktop
{
@ -48,7 +45,6 @@ namespace osu.Desktop
{
Func<string, bool> checkExists = p => Directory.Exists(Path.Combine(p, "Songs"));
#if NET_FRAMEWORK
string stableInstallPath;
try
@ -62,13 +58,8 @@ namespace osu.Desktop
catch
{
}
#endif
#if NET_FRAMEWORK
stableInstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"osu!");
#else
var stableInstallPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"osu!");
#endif
if (checkExists(stableInstallPath))
return stableInstallPath;