mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Don't throw exception for non-existent files
This commit is contained in:
parent
15b140b2ee
commit
cb65fc6317
@ -41,7 +41,7 @@ namespace osu.Game.Beatmaps
|
||||
}
|
||||
}
|
||||
|
||||
private string getPathForFile(string filename) => BeatmapSetInfo.Files.First(f => string.Equals(f.Filename, filename, StringComparison.InvariantCultureIgnoreCase)).FileInfo.StoragePath;
|
||||
private string getPathForFile(string filename) => BeatmapSetInfo.Files.FirstOrDefault(f => string.Equals(f.Filename, filename, StringComparison.InvariantCultureIgnoreCase))?.FileInfo.StoragePath;
|
||||
|
||||
private TextureStore textureStore;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user