From dcc7386609e1d2999ae9603d71fbfd948cd279d3 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 6 Mar 2017 22:07:46 +0900 Subject: [PATCH] Add option toggle for debug cached setting. --- .../Options/Sections/Debug/GeneralOptions.cs | 28 +++++++++++++++++++ .../Overlays/Options/Sections/DebugSection.cs | 1 + osu.Game/osu.Game.csproj | 1 + 3 files changed, 30 insertions(+) create mode 100644 osu.Game/Overlays/Options/Sections/Debug/GeneralOptions.cs diff --git a/osu.Game/Overlays/Options/Sections/Debug/GeneralOptions.cs b/osu.Game/Overlays/Options/Sections/Debug/GeneralOptions.cs new file mode 100644 index 0000000000..34901e1dac --- /dev/null +++ b/osu.Game/Overlays/Options/Sections/Debug/GeneralOptions.cs @@ -0,0 +1,28 @@ +// Copyright (c) 2007-2017 ppy Pty Ltd . +// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE + +using osu.Framework.Allocation; +using osu.Framework.Configuration; +using osu.Framework.Graphics; +using osu.Game.Graphics.UserInterface; + +namespace osu.Game.Overlays.Options.Sections.Debug +{ + public class GeneralOptions : OptionsSubsection + { + protected override string Header => "General"; + + [BackgroundDependencyLoader] + private void load(FrameworkDebugConfigManager config) + { + Children = new Drawable[] + { + new OsuCheckbox + { + LabelText = "Bypass caching", + Bindable = config.GetBindable(FrameworkDebugConfig.BypassCaching) + } + }; + } + } +} diff --git a/osu.Game/Overlays/Options/Sections/DebugSection.cs b/osu.Game/Overlays/Options/Sections/DebugSection.cs index 0839088f08..a90558a319 100644 --- a/osu.Game/Overlays/Options/Sections/DebugSection.cs +++ b/osu.Game/Overlays/Options/Sections/DebugSection.cs @@ -16,6 +16,7 @@ public DebugSection() { Children = new Drawable[] { + new GeneralOptions(), new GCOptions(), }; } diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index cf98450307..af6d7f07fa 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -121,6 +121,7 @@ +