Rename property and improve xmldoc

This commit is contained in:
Dean Herbert 2022-05-10 19:07:07 +09:00
parent cac6d5569c
commit 4d22f26266
3 changed files with 10 additions and 5 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Tournament
private Bindable<WindowMode> windowMode;
private LoadingSpinner loadingSpinner;
protected override int SoftHandledExceptions => DebugUtils.IsDebugBuild ? 0 : 1;
protected override int ExceptionsBeforeCrash => DebugUtils.IsDebugBuild ? 0 : 1;
[BackgroundDependencyLoader]
private void load(FrameworkConfigManager frameworkConfig, GameHost host)

View File

@ -176,7 +176,7 @@ namespace osu.Game
private readonly List<OverlayContainer> visibleBlockingOverlays = new List<OverlayContainer>();
protected override int SoftHandledExceptions => DebugUtils.IsDebugBuild ? 0 : 1;
protected override int ExceptionsBeforeCrash => DebugUtils.IsDebugBuild ? 0 : 1;
public OsuGame(string[] args = null)
{

View File

@ -182,15 +182,20 @@ namespace osu.Game
protected DatabaseContextFactory EFContextFactory { get; private set; }
/// <summary>
/// Number of exceptions to allow before aborting execution.
/// Number of unhandled exceptions to allow before aborting execution.
/// </summary>
protected virtual int SoftHandledExceptions => 0;
/// <remarks>
/// When an unhandled exception is encountered, an internal count will be decremented.
/// 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;
public OsuGameBase()
{
Name = @"osu!";
allowableExceptions = SoftHandledExceptions;
allowableExceptions = ExceptionsBeforeCrash;
}
[BackgroundDependencyLoader]