1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 23:12:55 +08:00

Split up adding of local store from the ctor.

This commit is contained in:
smoogipooo 2017-05-02 16:55:04 +09:00
parent e2620e2840
commit 40d2fee1dc

View File

@ -54,7 +54,10 @@ namespace osu.Game.Screens.Tournament
{ {
this.storage = storage; this.storage = storage;
TextureStore flagStore = new TextureStore(new RawTextureLoaderStore(new NamespacedResourceStore<byte[]>(new StorageBackedResourceStore(storage), "Drawings"))); TextureStore flagStore = new TextureStore();
// Local flag store
flagStore.AddStore(new RawTextureLoaderStore(new NamespacedResourceStore<byte[]>(new StorageBackedResourceStore(storage), "Drawings")));
/// Default texture store
flagStore.AddStore(textures); flagStore.AddStore(textures);
dependencies.Cache(flagStore); dependencies.Cache(flagStore);