mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 12:25:04 +08:00
Make registry checking work again
This commit is contained in:
parent
05aa6faf5e
commit
d364603e45
@ -1 +1 @@
|
||||
Subproject commit f6926e465dfecc99f7b11013c7e2428b736bfea2
|
||||
Subproject commit a4cbd332c4fcdd682252f5a89d8c01052b405e86
|
@ -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;
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
<ProjectReference Include="..\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj" />
|
||||
<ProjectReference Include="..\osu.Game\osu.Game.csproj" />
|
||||
<ProjectReference Include="..\osu-resources\osu.Game.Resources\osu.Game.Resources.csproj" />
|
||||
<PackageReference Include="Microsoft.Win32.Registry" Version="4.4.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Label="Package References">
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.0.1" />
|
||||
|
Loading…
Reference in New Issue
Block a user