From 54ee2829f10bb09ecf046851a28cc28a87dffc0c Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 22 May 2024 16:46:50 -0400 Subject: [PATCH] Make GetCopyProtection signature easier to read --- CHANGELIST.md | 1 + MPF.Core/InfoTool.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index f8ea4d1b..c7397b5d 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -66,6 +66,7 @@ - Simplify RequiredProgramsExist logic - Reduce complexity of ProcessSystem method - Remove unnecessary GetAntiModchipDetected method +- Make GetCopyProtection signature easier to read ### 3.1.9a (2024-05-21) diff --git a/MPF.Core/InfoTool.cs b/MPF.Core/InfoTool.cs index 2f871506..ca6e1008 100644 --- a/MPF.Core/InfoTool.cs +++ b/MPF.Core/InfoTool.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; +using BinaryObjectScanner; using MPF.Core.Data; using MPF.Core.Processors; using MPF.Core.Utilities; @@ -83,7 +84,9 @@ namespace MPF.Core /// Options object that determines what to scan /// Optional progress callback /// Detected copy protection(s) if possible, null on error - internal static async Task<(string?, Dictionary>?)> GetCopyProtection(Drive? drive, Options options, IProgress? progress = null) + internal static async Task<(string?, Dictionary>?)> GetCopyProtection(Drive? drive, + Data.Options options, + IProgress? progress = null) { if (options.ScanForProtection && drive?.Name != null) {