1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 13:23:22 +08:00

Fix files with upper-case extensions failing to import correctly

This commit is contained in:
Dean Herbert 2018-09-23 05:23:49 +09:00
parent 5e51a50658
commit 6efecc4b35
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ namespace osu.Game.IPC
return;
}
if (importer.HandledExtensions.Contains(Path.GetExtension(path)))
if (importer.HandledExtensions.Contains(Path.GetExtension(path)?.ToLower()))
importer.Import(path);
}
}

View File

@ -243,7 +243,7 @@ namespace osu.Game
public void Import(params string[] paths)
{
var extension = Path.GetExtension(paths.First());
var extension = Path.GetExtension(paths.First())?.ToLower();
foreach (var importer in fileImporters)
if (importer.HandledExtensions.Contains(extension)) importer.Import(paths);