mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 02:23:10 +08:00
Merge branch 'master' into fix-frame-handler-nullrefs
This commit is contained in:
commit
6d1f24e5e6
@ -14,6 +14,7 @@ using osuTK.Input;
|
|||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using osu.Desktop.Updater;
|
using osu.Desktop.Updater;
|
||||||
using osu.Framework;
|
using osu.Framework;
|
||||||
|
using osu.Framework.Logging;
|
||||||
using osu.Framework.Platform.Windows;
|
using osu.Framework.Platform.Windows;
|
||||||
using osu.Framework.Screens;
|
using osu.Framework.Screens;
|
||||||
using osu.Game.Screens.Menu;
|
using osu.Game.Screens.Menu;
|
||||||
@ -35,12 +36,15 @@ namespace osu.Desktop
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return new StableStorage();
|
if (Host is DesktopGameHost desktopHost)
|
||||||
|
return new StableStorage(desktopHost);
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return null;
|
Logger.Error(e, "Error while searching for stable install");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
@ -139,8 +143,8 @@ namespace osu.Desktop
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public StableStorage()
|
public StableStorage(DesktopGameHost host)
|
||||||
: base(string.Empty, null)
|
: base(string.Empty, host)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ namespace osu.Game.Configuration
|
|||||||
|
|
||||||
// Input
|
// Input
|
||||||
Set(OsuSetting.MenuCursorSize, 1.0, 0.5f, 2, 0.01);
|
Set(OsuSetting.MenuCursorSize, 1.0, 0.5f, 2, 0.01);
|
||||||
Set(OsuSetting.GameplayCursorSize, 1.0, 0.5f, 2, 0.01);
|
Set(OsuSetting.GameplayCursorSize, 1.0, 0.1f, 2, 0.01);
|
||||||
Set(OsuSetting.AutoCursorSize, false);
|
Set(OsuSetting.AutoCursorSize, false);
|
||||||
|
|
||||||
Set(OsuSetting.MouseDisableButtons, false);
|
Set(OsuSetting.MouseDisableButtons, false);
|
||||||
|
@ -116,5 +116,6 @@ namespace osu.Game.Overlays.Direct
|
|||||||
Ranked,
|
Ranked,
|
||||||
Rating,
|
Rating,
|
||||||
Plays,
|
Plays,
|
||||||
|
Favourites,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user