mirror of
https://github.com/ppy/osu
synced 2025-03-04 18:40:24 +00:00
Rename property and improve xmldoc
This commit is contained in:
parent
cac6d5569c
commit
4d22f26266
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user