mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 09:43:10 +08:00
Fix sample lookup not working correctly for custom rulesets
This commit is contained in:
parent
19ce3eba28
commit
a47e5aeead
@ -159,7 +159,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
dependencies.Cache(textureStore);
|
dependencies.Cache(textureStore);
|
||||||
|
|
||||||
localSampleStore = dependencies.Get<AudioManager>().GetSampleStore(new NamespacedResourceStore<byte[]>(resources, "Samples"));
|
localSampleStore = dependencies.Get<AudioManager>().GetSampleStore(new NamespacedResourceStore<byte[]>(resources, "Samples"));
|
||||||
dependencies.CacheAs(new FallbackSampleStore(localSampleStore, dependencies.Get<ISampleStore>()));
|
dependencies.CacheAs<ISampleStore>(new FallbackSampleStore(localSampleStore, dependencies.Get<ISampleStore>()));
|
||||||
}
|
}
|
||||||
|
|
||||||
onScreenDisplay = dependencies.Get<OnScreenDisplay>();
|
onScreenDisplay = dependencies.Get<OnScreenDisplay>();
|
||||||
|
Loading…
Reference in New Issue
Block a user