mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Remove unnecessary GetAntiModchipDetected method
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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!"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user