mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 14:13:01 +08:00
Fix code formatting regression
This commit is contained in:
parent
eb643b690a
commit
3354849cc9
@ -58,9 +58,14 @@ namespace osu.Game.Skinning
|
|||||||
private readonly SkinInfo skin;
|
private readonly SkinInfo skin;
|
||||||
private readonly IResourceStore<byte[]> underlyingStore;
|
private readonly IResourceStore<byte[]> underlyingStore;
|
||||||
|
|
||||||
private string getPathForFile(string filename) =>
|
private string getPathForFile(string filename)
|
||||||
skin.Files.FirstOrDefault(f => string.Equals(Path.GetFileNameWithoutExtension(f.Filename), filename.Split('/').Last(), StringComparison.InvariantCultureIgnoreCase))?.FileInfo
|
{
|
||||||
.StoragePath;
|
string lastPiece = filename.Split('/').Last();
|
||||||
|
|
||||||
|
var file = skin.Files.FirstOrDefault(f =>
|
||||||
|
string.Equals(Path.GetFileNameWithoutExtension(f.Filename), lastPiece, StringComparison.InvariantCultureIgnoreCase));
|
||||||
|
return file?.FileInfo.StoragePath;
|
||||||
|
}
|
||||||
|
|
||||||
public LegacySkinResourceStore(SkinInfo skin, IResourceStore<byte[]> underlyingStore)
|
public LegacySkinResourceStore(SkinInfo skin, IResourceStore<byte[]> underlyingStore)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user