1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 19:53:08 +08:00

Fix DrawableStoryboardVideo attempting to unmap path once too much

The `StoryboardResourceLookupStore` cached at storyboard level is
supposed to already be handling that; no need for local logic anymore.
This commit is contained in:
Bartłomiej Dach 2023-09-19 20:18:33 +02:00
parent ba518e1da8
commit 641e651bf2
No known key found for this signature in database

View File

@ -29,12 +29,7 @@ namespace osu.Game.Storyboards.Drawables
[BackgroundDependencyLoader(true)]
private void load(IBindable<WorkingBeatmap> beatmap, TextureStore textureStore)
{
string? path = beatmap.Value.BeatmapSetInfo?.GetPathForFile(Video.Path);
if (path == null)
return;
var stream = textureStore.GetStream(path);
var stream = textureStore.GetStream(Video.Path);
if (stream == null)
return;