diff --git a/BuildTools/ChangeLog/default.md b/BuildTools/ChangeLog/default.md index f4ad8e6..e5a2b35 100644 --- a/BuildTools/ChangeLog/default.md +++ b/BuildTools/ChangeLog/default.md @@ -9,7 +9,8 @@ title: Changelog * (Enhancement) - Added compatibility for mednafen v1.21.2 and v1.21.3 ([214](https://github.com/Asnivor/MedLaunch/issues/214)) * (BugFix) - Mitigated TimeSpan overflow exception ([215](https://github.com/Asnivor/MedLaunch/issues/215)) * (Enhancement) - Background picture can now be hidden (Opacity set to 0) ([220](https://github.com/Asnivor/MedLaunch/issues/220)) -* (BugFix) - Remove unneccesary dashes generated at the start of a launch string if user is running an older version of mednafen (or emu4crt.exe renamed to mednafen.exe) +* (BugFix) - Remove unneccesary dashes generated at the start of a launch string if user is running an older version of mednafen (or emu4crt.exe renamed to mednafen.exe) ([222](https://github.com/Asnivor/MedLaunch/issues/222)) +* (BugFix) - Enable case-agnostic file extension scanning ([226](https://github.com/Asnivor/MedLaunch/issues/226)) ##### [0.5.25.3](https://medlaunch.info/releases/0-5-25-x) ###### 2018-03-22 diff --git a/MedLaunch/Classes/Scanning/RomScan.cs b/MedLaunch/Classes/Scanning/RomScan.cs index 3009644..97c1d24 100644 --- a/MedLaunch/Classes/Scanning/RomScan.cs +++ b/MedLaunch/Classes/Scanning/RomScan.cs @@ -73,7 +73,7 @@ public void BeginRomImport(int _systemId, ProgressDialogController _dialog) { foreach (string p in romFiles) { - if (p.EndsWith(s)) + if (p.ToUpper().EndsWith(s.ToUpper())) { //MessageBoxResult result5 = MessageBox.Show(p); allowedFiles.Add(p); @@ -128,7 +128,7 @@ public void ProcessFile(string file) string hash = String.Empty; // inspect archive files - if (extension == ".zip" || extension == ".7z") + if (extension.ToLower() == ".zip" || extension.ToLower() == ".7z") { //bool isAllowed = false; try @@ -151,7 +151,7 @@ public void ProcessFile(string file) // no allowed files return; } - else if (alcnt == 1 && extension == ".zip") + else if (alcnt == 1 && extension.ToLower() == ".zip") { // 1 allowed file and 1 total files in a zip file - use the zip file rather than the embedded rom var result = results.Results.FirstOrDefault(); @@ -159,7 +159,7 @@ public void ProcessFile(string file) if (result == null) return; - if (result.Extension == ".zip" || result.Extension == ".7z") + if (result.Extension.ToLower() == ".zip" || result.Extension.ToLower() == ".7z") return; //ArchiveFiles.Add(a);