mirror of
https://github.com/osukey/osukey.git
synced 2025-06-23 12:18:03 +09:00
Use case insensitive paths to find storyboard textures.
This commit is contained in:
parent
9eaa1cb5cd
commit
cd15cfc864
@ -69,11 +69,12 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuGameBase game, TextureStore textureStore)
|
private void load(OsuGameBase game, TextureStore textureStore)
|
||||||
{
|
{
|
||||||
|
var basePath = Definition.Path.ToLowerInvariant();
|
||||||
for (var frame = 0; frame < Definition.FrameCount; frame++)
|
for (var frame = 0; frame < Definition.FrameCount; frame++)
|
||||||
{
|
{
|
||||||
var framePath = Definition.Path.Replace(".", frame + ".");
|
var framePath = basePath.Replace(".", frame + ".");
|
||||||
|
|
||||||
var path = game.Beatmap.Value.BeatmapSetInfo.Files.FirstOrDefault(f => f.Filename == framePath)?.FileInfo.StoragePath;
|
var path = game.Beatmap.Value.BeatmapSetInfo.Files.FirstOrDefault(f => f.Filename.ToLowerInvariant() == framePath)?.FileInfo.StoragePath;
|
||||||
if (path == null)
|
if (path == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -68,8 +68,8 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuGameBase game, TextureStore textureStore)
|
private void load(OsuGameBase game, TextureStore textureStore)
|
||||||
{
|
{
|
||||||
var spritePath = Definition.Path;
|
var spritePath = Definition.Path.ToLowerInvariant();
|
||||||
var path = game.Beatmap.Value.BeatmapSetInfo.Files.FirstOrDefault(f => f.Filename == spritePath)?.FileInfo.StoragePath;
|
var path = game.Beatmap.Value.BeatmapSetInfo.Files.FirstOrDefault(f => f.Filename.ToLowerInvariant() == spritePath)?.FileInfo.StoragePath;
|
||||||
if (path == null)
|
if (path == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user