diff --git a/osu.Game/Rulesets/UI/DrawableRulesetDependencies.cs b/osu.Game/Rulesets/UI/DrawableRulesetDependencies.cs
index c1742970c7..a9b2a15b35 100644
--- a/osu.Game/Rulesets/UI/DrawableRulesetDependencies.cs
+++ b/osu.Game/Rulesets/UI/DrawableRulesetDependencies.cs
@@ -87,87 +87,87 @@ namespace osu.Game.Rulesets.UI
}
#endregion
- }
- ///
- /// A sample store which adds a fallback source and prevents disposal of the fallback source.
- ///
- public class FallbackSampleStore : ISampleStore
- {
- private readonly ISampleStore primary;
- private readonly ISampleStore fallback;
-
- public FallbackSampleStore(ISampleStore primary, ISampleStore fallback)
+ ///
+ /// A sample store which adds a fallback source and prevents disposal of the fallback source.
+ ///
+ private class FallbackSampleStore : ISampleStore
{
- this.primary = primary;
- this.fallback = fallback;
+ private readonly ISampleStore primary;
+ private readonly ISampleStore fallback;
+
+ public FallbackSampleStore(ISampleStore primary, ISampleStore fallback)
+ {
+ this.primary = primary;
+ this.fallback = fallback;
+ }
+
+ public SampleChannel Get(string name) => primary.Get(name) ?? fallback.Get(name);
+
+ public Task GetAsync(string name) => primary.GetAsync(name) ?? fallback.GetAsync(name);
+
+ public Stream GetStream(string name) => primary.GetStream(name) ?? fallback.GetStream(name);
+
+ public IEnumerable GetAvailableResources() => throw new NotSupportedException();
+
+ public void AddAdjustment(AdjustableProperty type, BindableNumber adjustBindable) => throw new NotSupportedException();
+
+ public void RemoveAdjustment(AdjustableProperty type, BindableNumber adjustBindable) => throw new NotSupportedException();
+
+ public void RemoveAllAdjustments(AdjustableProperty type) => throw new NotSupportedException();
+
+ public BindableNumber Volume => throw new NotSupportedException();
+
+ public BindableNumber Balance => throw new NotSupportedException();
+
+ public BindableNumber Frequency => throw new NotSupportedException();
+
+ public BindableNumber Tempo => throw new NotSupportedException();
+
+ public IBindable GetAggregate(AdjustableProperty type) => throw new NotSupportedException();
+
+ public IBindable AggregateVolume => throw new NotSupportedException();
+
+ public IBindable AggregateBalance => throw new NotSupportedException();
+
+ public IBindable AggregateFrequency => throw new NotSupportedException();
+
+ public IBindable AggregateTempo => throw new NotSupportedException();
+
+ public int PlaybackConcurrency
+ {
+ get => throw new NotSupportedException();
+ set => throw new NotSupportedException();
+ }
+
+ public void Dispose()
+ {
+ primary?.Dispose();
+ }
}
- public SampleChannel Get(string name) => primary.Get(name) ?? fallback.Get(name);
-
- public Task GetAsync(string name) => primary.GetAsync(name) ?? fallback.GetAsync(name);
-
- public Stream GetStream(string name) => primary.GetStream(name) ?? fallback.GetStream(name);
-
- public IEnumerable GetAvailableResources() => throw new NotSupportedException();
-
- public void AddAdjustment(AdjustableProperty type, BindableNumber adjustBindable) => throw new NotSupportedException();
-
- public void RemoveAdjustment(AdjustableProperty type, BindableNumber adjustBindable) => throw new NotSupportedException();
-
- public void RemoveAllAdjustments(AdjustableProperty type) => throw new NotSupportedException();
-
- public BindableNumber Volume => throw new NotSupportedException();
-
- public BindableNumber Balance => throw new NotSupportedException();
-
- public BindableNumber Frequency => throw new NotSupportedException();
-
- public BindableNumber Tempo => throw new NotSupportedException();
-
- public IBindable GetAggregate(AdjustableProperty type) => throw new NotSupportedException();
-
- public IBindable AggregateVolume => throw new NotSupportedException();
-
- public IBindable AggregateBalance => throw new NotSupportedException();
-
- public IBindable AggregateFrequency => throw new NotSupportedException();
-
- public IBindable AggregateTempo => throw new NotSupportedException();
-
- public int PlaybackConcurrency
+ ///
+ /// A texture store which adds a fallback source and prevents disposal of the fallback source.
+ ///
+ private class FallbackTextureStore : TextureStore
{
- get => throw new NotSupportedException();
- set => throw new NotSupportedException();
- }
+ private readonly TextureStore primary;
+ private readonly TextureStore fallback;
- public void Dispose()
- {
- primary?.Dispose();
- }
- }
+ public FallbackTextureStore(TextureStore primary, TextureStore fallback)
+ {
+ this.primary = primary;
+ this.fallback = fallback;
+ }
- ///
- /// A texture store which adds a fallback source and prevents disposal of the fallback source.
- ///
- public class FallbackTextureStore : TextureStore
- {
- private readonly TextureStore primary;
- private readonly TextureStore fallback;
+ public override Texture Get(string name, WrapMode wrapModeS, WrapMode wrapModeT)
+ => primary.Get(name, wrapModeS, wrapModeT) ?? fallback.Get(name, wrapModeS, wrapModeT);
- public FallbackTextureStore(TextureStore primary, TextureStore fallback)
- {
- this.primary = primary;
- this.fallback = fallback;
- }
-
- public override Texture Get(string name, WrapMode wrapModeS, WrapMode wrapModeT)
- => primary.Get(name, wrapModeS, wrapModeT) ?? fallback.Get(name, wrapModeS, wrapModeT);
-
- protected override void Dispose(bool disposing)
- {
- base.Dispose(disposing);
- primary?.Dispose();
+ protected override void Dispose(bool disposing)
+ {
+ base.Dispose(disposing);
+ primary?.Dispose();
+ }
}
}
}