mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Rename property and improve xmldoc
This commit is contained in:
@ -40,7 +40,7 @@ namespace osu.Game.Tournament
|
|||||||
private Bindable<WindowMode> windowMode;
|
private Bindable<WindowMode> windowMode;
|
||||||
private LoadingSpinner loadingSpinner;
|
private LoadingSpinner loadingSpinner;
|
||||||
|
|
||||||
protected override int SoftHandledExceptions => DebugUtils.IsDebugBuild ? 0 : 1;
|
protected override int ExceptionsBeforeCrash => DebugUtils.IsDebugBuild ? 0 : 1;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(FrameworkConfigManager frameworkConfig, GameHost host)
|
private void load(FrameworkConfigManager frameworkConfig, GameHost host)
|
||||||
|
@ -176,7 +176,7 @@ namespace osu.Game
|
|||||||
|
|
||||||
private readonly List<OverlayContainer> visibleBlockingOverlays = new List<OverlayContainer>();
|
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)
|
public OsuGame(string[] args = null)
|
||||||
{
|
{
|
||||||
|
@ -182,15 +182,20 @@ namespace osu.Game
|
|||||||
protected DatabaseContextFactory EFContextFactory { get; private set; }
|
protected DatabaseContextFactory EFContextFactory { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of exceptions to allow before aborting execution.
|
/// Number of unhandled exceptions to allow before aborting execution.
|
||||||
/// </summary>
|
/// </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()
|
public OsuGameBase()
|
||||||
{
|
{
|
||||||
Name = @"osu!";
|
Name = @"osu!";
|
||||||
|
|
||||||
allowableExceptions = SoftHandledExceptions;
|
allowableExceptions = ExceptionsBeforeCrash;
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
|
Reference in New Issue
Block a user