mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Expose LargeTextureStore
This commit is contained in:
parent
ee6263f395
commit
0003a9310f
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user