Remove unnecessary GetAntiModchipDetected method

This commit is contained in:
Matt Nadareski
2024-05-22 16:45:28 -04:00
parent b003203aef
commit f89cac5400
3 changed files with 2 additions and 9 deletions

View File

@@ -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)

View File

@@ -62,14 +62,6 @@ namespace MPF.Core
}
}
/// <summary>
/// Get the existence of an anti-modchip string from a PlayStation disc, if possible
/// </summary>
/// <param name="drive">Drive object representing the current drive</param>
/// <returns>Anti-modchip existence if possible, false on error</returns>
internal static async Task<bool> GetAntiModchipDetected(Drive drive) =>
await Protection.GetPlayStationAntiModchipDetected(drive.Name);
/// <summary>
/// Get the Base64 representation of a string
/// </summary>

View File

@@ -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!"));
}