Skip to content

Commit

Permalink
Allow one more exception per second in OsuGame and TournamentGame
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed May 10, 2022
1 parent bcd91ac commit 725f5f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osu.Game.Tournament/TournamentGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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;
Expand Down Expand Up @@ -39,6 +40,8 @@ public class TournamentGame : TournamentGameBase
private Bindable<WindowMode> windowMode;
private LoadingSpinner loadingSpinner;

protected override int SoftHandledExceptions => DebugUtils.IsDebugBuild ? 0 : 1;

[BackgroundDependencyLoader]
private void load(FrameworkConfigManager frameworkConfig, GameHost host)
{
Expand Down
3 changes: 3 additions & 0 deletions osu.Game/OsuGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
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;
Expand Down Expand Up @@ -175,6 +176,8 @@ public class OsuGame : OsuGameBase, IKeyBindingHandler<GlobalAction>, ILocalUser

private readonly List<OverlayContainer> visibleBlockingOverlays = new List<OverlayContainer>();

protected override int SoftHandledExceptions => DebugUtils.IsDebugBuild ? 0 : 1;

public OsuGame(string[] args = null)
{
this.args = args;
Expand Down

0 comments on commit 725f5f4

Please sign in to comment.