Merge pull request #1353 from huoyaoyuan/fix

Ignore filename case in BeatmapManager
This commit is contained in:
Dean Herbert 2017-10-11 16:07:39 +09:00 committed by GitHub
commit e83cb91185
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ protected override Beatmap GetBeatmap()
catch { return null; }
}
private string getPathForFile(string filename) => BeatmapSetInfo.Files.First(f => f.Filename == filename).FileInfo.StoragePath;
private string getPathForFile(string filename) => BeatmapSetInfo.Files.First(f => string.Equals(f.Filename, filename, StringComparison.InvariantCultureIgnoreCase)).FileInfo.StoragePath;
protected override Texture GetBackground()
{