mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Move implementation to base
This commit is contained in:
parent
4d22f26266
commit
b2a57c34bb
@ -6,7 +6,6 @@ using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
@ -40,8 +39,6 @@ namespace osu.Game.Tournament
|
||||
private Bindable<WindowMode> windowMode;
|
||||
private LoadingSpinner loadingSpinner;
|
||||
|
||||
protected override int ExceptionsBeforeCrash => DebugUtils.IsDebugBuild ? 0 : 1;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(FrameworkConfigManager frameworkConfig, GameHost host)
|
||||
{
|
||||
|
@ -13,7 +13,6 @@ using osu.Framework.Allocation;
|
||||
using osu.Framework.Audio;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
@ -176,8 +175,6 @@ namespace osu.Game
|
||||
|
||||
private readonly List<OverlayContainer> visibleBlockingOverlays = new List<OverlayContainer>();
|
||||
|
||||
protected override int ExceptionsBeforeCrash => DebugUtils.IsDebugBuild ? 0 : 1;
|
||||
|
||||
public OsuGame(string[] args = null)
|
||||
{
|
||||
this.args = args;
|
||||
|
@ -189,13 +189,13 @@ namespace osu.Game
|
||||
/// If the count hits zero, the game will crash.
|
||||
/// Each second, the count is incremented until reaching the value specified.
|
||||
/// </remarks>
|
||||
protected virtual int ExceptionsBeforeCrash => 0;
|
||||
protected virtual int UnhandledExceptionsBeforeCrash => DebugUtils.IsDebugBuild ? 0 : 1;
|
||||
|
||||
public OsuGameBase()
|
||||
{
|
||||
Name = @"osu!";
|
||||
|
||||
allowableExceptions = ExceptionsBeforeCrash;
|
||||
allowableExceptions = UnhandledExceptionsBeforeCrash;
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
Loading…
Reference in New Issue
Block a user