mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Fix realm backed store not being initialised for some tests
This commit is contained in:
parent
a5acd38fd5
commit
e56d13d8be
@ -63,26 +63,18 @@ namespace osu.Game.Skinning
|
|||||||
{
|
{
|
||||||
if (resources != null)
|
if (resources != null)
|
||||||
{
|
{
|
||||||
if (resources.RealmAccess != null)
|
SkinInfo = resources.RealmAccess != null
|
||||||
{
|
? skin.ToLive(resources.RealmAccess)
|
||||||
SkinInfo = skin.ToLive(resources.RealmAccess);
|
: skin.ToLiveUnmanaged();
|
||||||
|
|
||||||
storage ??= new RealmBackedResourceStore(skin, resources.Files, new[] { @"ogg" });
|
storage ??= new RealmBackedResourceStore(skin, resources.Files, new[] { @"ogg" });
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SkinInfo = skin.ToLiveUnmanaged();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (storage != null)
|
var samples = resources.AudioManager?.GetSampleStore(storage);
|
||||||
{
|
if (samples != null)
|
||||||
var samples = resources.AudioManager?.GetSampleStore(storage);
|
samples.PlaybackConcurrency = OsuGameBase.SAMPLE_CONCURRENCY;
|
||||||
if (samples != null)
|
|
||||||
samples.PlaybackConcurrency = OsuGameBase.SAMPLE_CONCURRENCY;
|
|
||||||
|
|
||||||
Samples = samples;
|
Samples = samples;
|
||||||
Textures = new TextureStore(resources.CreateTextureLoaderStore(storage));
|
Textures = new TextureStore(resources.CreateTextureLoaderStore(storage));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configurationStream ??= storage?.GetStream(@"skin.ini");
|
configurationStream ??= storage?.GetStream(@"skin.ini");
|
||||||
|
Loading…
Reference in New Issue
Block a user