mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use GetAsync on all textures
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Textures;
|
||||
@ -23,7 +24,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TextureStore textures)
|
||||
private async Task load(TextureStore textures)
|
||||
{
|
||||
string resource = null;
|
||||
|
||||
@ -41,7 +42,7 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
}
|
||||
|
||||
if (resource != null)
|
||||
Texture = textures.Get(resource);
|
||||
Texture = await textures.GetAsync(resource);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user