Make code more concise and move method to a more appropriate place

This commit is contained in:
Dean Herbert 2021-03-24 13:37:37 +09:00
parent c8542d2434
commit f95175983a
1 changed files with 7 additions and 8 deletions

View File

@ -531,6 +531,13 @@ protected override void Dispose(bool isDisposing)
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()
{
base.LoadComplete();
@ -1013,13 +1020,5 @@ private void screenExited(IScreen lastScreen, IScreen newScreen)
if (newScreen == null)
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;
}
}
}