diff --git a/CHANGELIST.md b/CHANGELIST.md index 81fe1f6e..f8ea4d1b 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -65,6 +65,7 @@ - Make drive private to DumpEnvironment - Simplify RequiredProgramsExist logic - Reduce complexity of ProcessSystem method +- Remove unnecessary GetAntiModchipDetected method ### 3.1.9a (2024-05-21) diff --git a/MPF.Core/InfoTool.cs b/MPF.Core/InfoTool.cs index e62ae3d4..2f871506 100644 --- a/MPF.Core/InfoTool.cs +++ b/MPF.Core/InfoTool.cs @@ -62,14 +62,6 @@ namespace MPF.Core } } - /// - /// Get the existence of an anti-modchip string from a PlayStation disc, if possible - /// - /// Drive object representing the current drive - /// Anti-modchip existence if possible, false on error - internal static async Task GetAntiModchipDetected(Drive drive) => - await Protection.GetPlayStationAntiModchipDetected(drive.Name); - /// /// Get the Base64 representation of a string /// diff --git a/MPF.Core/SubmissionInfoTool.cs b/MPF.Core/SubmissionInfoTool.cs index 3b1d1fd4..ba7f0322 100644 --- a/MPF.Core/SubmissionInfoTool.cs +++ b/MPF.Core/SubmissionInfoTool.cs @@ -112,7 +112,7 @@ namespace MPF.Core if (drive != null && SupportsAntiModchipScans(system) && info.CopyProtection!.AntiModchip == YesNo.NULL) { resultProgress?.Report(ResultEventArgs.Success("Checking for anti-modchip strings... this might take a while!")); - info.CopyProtection.AntiModchip = await InfoTool.GetAntiModchipDetected(drive) ? YesNo.Yes : YesNo.No; + info.CopyProtection.AntiModchip = await Protection.GetPlayStationAntiModchipDetected(drive?.Name) ? YesNo.Yes : YesNo.No; resultProgress?.Report(ResultEventArgs.Success("Anti-modchip string scan complete!")); }