From 9834d0ea3e044282d69e06a128262ced388c6f0b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 23 Aug 2024 21:39:50 -0400 Subject: [PATCH] Fix access permissions of output file classes --- CHANGELIST.md | 1 + MPF.Processors/Aaru.cs | 2 +- MPF.Processors/BaseProcessor.cs | 2 +- MPF.Processors/CleanRip.cs | 2 +- MPF.Processors/CustomOutputFile.cs | 3 +-- MPF.Processors/DiscImageCreator.cs | 2 +- MPF.Processors/OutputFile.cs | 4 ++-- MPF.Processors/PS3CFW.cs | 2 +- MPF.Processors/Redumper.cs | 2 +- MPF.Processors/RegexOutputFile.cs | 3 +-- MPF.Processors/UmdImageCreator.cs | 2 +- MPF.Processors/XboxBackupCreator.cs | 2 +- 12 files changed, 13 insertions(+), 14 deletions(-) diff --git a/CHANGELIST.md b/CHANGELIST.md index 7cac1971..94bf3ac9 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -61,6 +61,7 @@ - Forgot the other locations - Add future XGD output files - Add and use CustomOutputFile +- Fix access permissions of output file classes ### 3.2.1 (2024-08-05) diff --git a/MPF.Processors/Aaru.cs b/MPF.Processors/Aaru.cs index 551bf5ad..5fc56eca 100644 --- a/MPF.Processors/Aaru.cs +++ b/MPF.Processors/Aaru.cs @@ -186,7 +186,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) { diff --git a/MPF.Processors/BaseProcessor.cs b/MPF.Processors/BaseProcessor.cs index ddbaeb27..52c484f4 100644 --- a/MPF.Processors/BaseProcessor.cs +++ b/MPF.Processors/BaseProcessor.cs @@ -57,7 +57,7 @@ namespace MPF.Processors /// /// Base filename to use for checking /// List of all output files, empty otherwise - public abstract List GetOutputFiles(string baseFilename); + internal abstract List GetOutputFiles(string baseFilename); #endregion diff --git a/MPF.Processors/CleanRip.cs b/MPF.Processors/CleanRip.cs index ec25df95..4ae05b23 100644 --- a/MPF.Processors/CleanRip.cs +++ b/MPF.Processors/CleanRip.cs @@ -67,7 +67,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) { diff --git a/MPF.Processors/CustomOutputFile.cs b/MPF.Processors/CustomOutputFile.cs index f1734bc2..d1074188 100644 --- a/MPF.Processors/CustomOutputFile.cs +++ b/MPF.Processors/CustomOutputFile.cs @@ -3,14 +3,13 @@ using System.IO; #if NET452_OR_GREATER || NETCOREAPP using System.IO.Compression; #endif -using System.Linq; namespace MPF.Processors { /// /// Represents a single output file with custom detection rules /// - public class CustomOutputFile : OutputFile + internal class CustomOutputFile : OutputFile { /// /// Optional func for determining if a file exists diff --git a/MPF.Processors/DiscImageCreator.cs b/MPF.Processors/DiscImageCreator.cs index e0b7d083..12fd69a5 100644 --- a/MPF.Processors/DiscImageCreator.cs +++ b/MPF.Processors/DiscImageCreator.cs @@ -480,7 +480,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) { diff --git a/MPF.Processors/OutputFile.cs b/MPF.Processors/OutputFile.cs index 895169bd..969eaf3f 100644 --- a/MPF.Processors/OutputFile.cs +++ b/MPF.Processors/OutputFile.cs @@ -11,7 +11,7 @@ namespace MPF.Processors /// Represents attributes about an /// [Flags] - public enum OutputFileFlags : ushort + internal enum OutputFileFlags : ushort { /// /// Default state @@ -47,7 +47,7 @@ namespace MPF.Processors /// /// Represents a single output file /// - public class OutputFile + internal class OutputFile { /// /// Set of all filename variants diff --git a/MPF.Processors/PS3CFW.cs b/MPF.Processors/PS3CFW.cs index d806f039..18ffe080 100644 --- a/MPF.Processors/PS3CFW.cs +++ b/MPF.Processors/PS3CFW.cs @@ -76,7 +76,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) { diff --git a/MPF.Processors/Redumper.cs b/MPF.Processors/Redumper.cs index 2d4763e6..c4e93188 100644 --- a/MPF.Processors/Redumper.cs +++ b/MPF.Processors/Redumper.cs @@ -361,7 +361,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) { diff --git a/MPF.Processors/RegexOutputFile.cs b/MPF.Processors/RegexOutputFile.cs index 60e518c1..e54d3ce5 100644 --- a/MPF.Processors/RegexOutputFile.cs +++ b/MPF.Processors/RegexOutputFile.cs @@ -1,4 +1,3 @@ -using System; using System.IO; #if NET452_OR_GREATER || NETCOREAPP using System.IO.Compression; @@ -11,7 +10,7 @@ namespace MPF.Processors /// /// Represents a single output file with a Regex-matched name /// - public class RegexOutputFile : OutputFile + internal class RegexOutputFile : OutputFile { /// /// Create an OutputFile with a single filename diff --git a/MPF.Processors/UmdImageCreator.cs b/MPF.Processors/UmdImageCreator.cs index fbb158c7..53c0662f 100644 --- a/MPF.Processors/UmdImageCreator.cs +++ b/MPF.Processors/UmdImageCreator.cs @@ -78,7 +78,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) { diff --git a/MPF.Processors/XboxBackupCreator.cs b/MPF.Processors/XboxBackupCreator.cs index 56a91b19..aca77bb5 100644 --- a/MPF.Processors/XboxBackupCreator.cs +++ b/MPF.Processors/XboxBackupCreator.cs @@ -150,7 +150,7 @@ namespace MPF.Processors } /// - public override List GetOutputFiles(string baseFilename) + internal override List GetOutputFiles(string baseFilename) { switch (Type) {