mirror of
https://github.com/ppy/osu
synced 2024-12-28 09:52:56 +00:00
Fix HitObjectSampleTest
adding null files to realm models
This commit is contained in:
parent
00aea9bef0
commit
a5acd38fd5
@ -96,12 +96,14 @@ namespace osu.Game.Tests.Beatmaps
|
||||
AddStep("setup skins", () =>
|
||||
{
|
||||
userSkinInfo.Files.Clear();
|
||||
userSkinInfo.Files.Add(new RealmNamedFileUsage(new RealmFile { Hash = userFile }, userFile));
|
||||
if (!string.IsNullOrEmpty(userFile))
|
||||
userSkinInfo.Files.Add(new RealmNamedFileUsage(new RealmFile { Hash = userFile }, userFile));
|
||||
|
||||
Debug.Assert(beatmapInfo.BeatmapSet != null);
|
||||
|
||||
beatmapInfo.BeatmapSet.Files.Clear();
|
||||
beatmapInfo.BeatmapSet.Files.Add(new RealmNamedFileUsage(new RealmFile { Hash = beatmapFile }, beatmapFile));
|
||||
if (!string.IsNullOrEmpty(beatmapFile))
|
||||
beatmapInfo.BeatmapSet.Files.Add(new RealmNamedFileUsage(new RealmFile { Hash = beatmapFile }, beatmapFile));
|
||||
|
||||
// Need to refresh the cached skin source to refresh the skin resource store.
|
||||
dependencies.SkinSource = new SkinProvidingContainer(Skin = new LegacySkin(userSkinInfo, this));
|
||||
|
Loading…
Reference in New Issue
Block a user