Make `Disc.IsValidExtension` helper case-insensitive

This commit is contained in:
YoshiRulz 2022-06-20 10:02:20 +10:00
parent fea85649bb
commit 1241758ecb
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 5 deletions

View File

@ -128,10 +128,7 @@ namespace BizHawk.Emulation.DiscSystem
internal Disc()
{}
public static bool IsValidExtension(string extension) =>
extension == ".iso"
|| extension == ".cue"
|| extension == ".ccd"
|| extension == ".mds";
public static bool IsValidExtension(string extension)
=> extension.ToLowerInvariant() is ".ccd" or ".cue" or ".iso" or ".mds";
}
}