mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Make code more concise and move method to a more appropriate place
This commit is contained in:
@ -531,6 +531,13 @@ namespace osu.Game
|
|||||||
SentryLogger.Dispose();
|
SentryLogger.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override IDictionary<FrameworkSetting, object> GetFrameworkConfigDefaults()
|
||||||
|
=> new Dictionary<FrameworkSetting, object>
|
||||||
|
{
|
||||||
|
// General expectation that osu! starts in fullscreen by default (also gives the most predictable performance)
|
||||||
|
{ FrameworkSetting.WindowMode, WindowMode.Fullscreen }
|
||||||
|
};
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
@ -1013,13 +1020,5 @@ namespace osu.Game
|
|||||||
if (newScreen == null)
|
if (newScreen == null)
|
||||||
Exit();
|
Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override IDictionary<FrameworkSetting, object> GetFrameworkConfigDefaults()
|
|
||||||
{
|
|
||||||
// Overriding config defaults determined by Framework
|
|
||||||
IDictionary<FrameworkSetting, object> defaultOverrides = new Dictionary<FrameworkSetting, object>();
|
|
||||||
defaultOverrides.Add(FrameworkSetting.WindowMode, WindowMode.Fullscreen);
|
|
||||||
return defaultOverrides;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user