From 1241758ecbbf17f6465fbece34edda2a9e3763fc Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Mon, 20 Jun 2022 10:02:20 +1000 Subject: [PATCH] Make `Disc.IsValidExtension` helper case-insensitive --- src/BizHawk.Emulation.DiscSystem/Disc.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/BizHawk.Emulation.DiscSystem/Disc.cs b/src/BizHawk.Emulation.DiscSystem/Disc.cs index 7db2fc7aa8..b5c8352ed6 100644 --- a/src/BizHawk.Emulation.DiscSystem/Disc.cs +++ b/src/BizHawk.Emulation.DiscSystem/Disc.cs @@ -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"; } } \ No newline at end of file