diff --git a/CHANGELIST.md b/CHANGELIST.md index 1e889481..4b455d40 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -17,7 +17,7 @@ - Add hashing for UMDs from UIC outputs - Fix information gathering for UIC outputs - Fix issue with duplicate security sector data in XGD DiscImageCreator outputs -- Update to BurnOutSharp 1.5.1 +- ~~Update to BurnOutSharp 1.5.1~~ - ~~Update to DIC version 20210202~~ - Add VCD detection - Fix UI not updating properly on drive change @@ -47,6 +47,7 @@ - Updated to DIC version 20210401 - Support log file compression - Add ring code guide button to disc submission window +- Update to BurnOutSharp 1.6.0 ### 1.18 (2020-11-10) - Add more information extraction and generation for Aaru diff --git a/MPF.Check/MPF.Check.csproj b/MPF.Check/MPF.Check.csproj index ebba198d..872fb667 100644 --- a/MPF.Check/MPF.Check.csproj +++ b/MPF.Check/MPF.Check.csproj @@ -22,7 +22,7 @@ - + runtime; compile; build; native; analyzers; buildtransitive diff --git a/MPF.Library/Data/BaseParameters.cs b/MPF.Library/Data/BaseParameters.cs index 50942936..883c9854 100644 --- a/MPF.Library/Data/BaseParameters.cs +++ b/MPF.Library/Data/BaseParameters.cs @@ -572,12 +572,15 @@ namespace MPF.Data return false; // Scan through each file to check for the anti-modchip strings + var antiModchip = new PSXAntiModchip(); foreach (string path in Directory.EnumerateFiles(drivePath, "*", SearchOption.AllDirectories)) { try { byte[] fileContent = File.ReadAllBytes(path); - return PSXAntiModchip.CheckContents(fileContent) != null; + string protection = antiModchip.CheckContents(path, fileContent, includePosition: false); + if (!string.IsNullOrWhiteSpace(protection)) + return true; } catch { diff --git a/MPF.Library/MPF.Library.csproj b/MPF.Library/MPF.Library.csproj index b7904a7a..ce2ddc0b 100644 --- a/MPF.Library/MPF.Library.csproj +++ b/MPF.Library/MPF.Library.csproj @@ -67,12 +67,12 @@ - + runtime; compile; build; native; analyzers; buildtransitive - + - + diff --git a/MPF/MPF.csproj b/MPF/MPF.csproj index 06ebe619..91cb6302 100644 --- a/MPF/MPF.csproj +++ b/MPF/MPF.csproj @@ -21,10 +21,10 @@ - + runtime; compile; build; native; analyzers; buildtransitive - +