mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +08:00
Ignore case when searching for existing skin.ini
This commit is contained in:
parent
d603bde9ac
commit
5bfb16efe2
@ -93,7 +93,7 @@ namespace osu.Game.Skinning
|
||||
|
||||
private Stream getConfigurationStream()
|
||||
{
|
||||
string path = SkinInfo.Files.SingleOrDefault(f => f.Filename == "skin.ini")?.FileInfo.StoragePath;
|
||||
string path = SkinInfo.Files.SingleOrDefault(f => f.Filename.Equals(@"skin.ini", StringComparison.OrdinalIgnoreCase))?.FileInfo.StoragePath;
|
||||
|
||||
if (string.IsNullOrEmpty(path))
|
||||
return null;
|
||||
|
@ -194,7 +194,7 @@ namespace osu.Game.Skinning
|
||||
string nameLine = $"Name: {item.Name}";
|
||||
string authorLine = $"Author: {item.Creator}";
|
||||
|
||||
var existingFile = item.Files.SingleOrDefault(f => f.Filename == "skin.ini");
|
||||
var existingFile = item.Files.SingleOrDefault(f => f.Filename.Equals(@"skin.ini", StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (existingFile != null)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user