1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00

Expose LargeTextureStore

This commit is contained in:
Dean Herbert 2018-11-08 20:15:08 +09:00
parent ee6263f395
commit 0003a9310f

View File

@ -110,9 +110,9 @@ namespace osu.Game
dependencies.Cache(contextFactory = new DatabaseContextFactory(Host.Storage));
var largeStore = new LargeTextureStore(new TextureLoaderStore(new NamespacedResourceStore<byte[]>(Resources, @"Textures")));
largeStore.AddStore(new TextureLoaderStore(new OnlineStore()));
dependencies.Cache(largeStore);
LargeTextureStore = new LargeTextureStore(new TextureLoaderStore(new NamespacedResourceStore<byte[]>(Resources, @"Textures")));
LargeTextureStore.AddStore(new TextureLoaderStore(new OnlineStore()));
dependencies.Cache(LargeTextureStore);
dependencies.CacheAs(this);
dependencies.Cache(LocalConfig);
@ -243,6 +243,8 @@ namespace osu.Game
private readonly List<ICanAcceptFiles> fileImporters = new List<ICanAcceptFiles>();
protected LargeTextureStore LargeTextureStore;
public void Import(params string[] paths)
{
var extension = Path.GetExtension(paths.First())?.ToLowerInvariant();