Skip to content

Commit

Permalink
Fix access permissions of output file classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnadareski committed Aug 24, 2024
1 parent a35c13b commit 9834d0e
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/Aaru.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/BaseProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public BaseProcessor(RedumpSystem? system, MediaType? type)
/// </summary>
/// <param name="baseFilename">Base filename to use for checking</param>
/// <returns>List of all output files, empty otherwise</returns>
public abstract List<OutputFile> GetOutputFiles(string baseFilename);
internal abstract List<OutputFile> GetOutputFiles(string baseFilename);

#endregion

Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/CleanRip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down
3 changes: 1 addition & 2 deletions MPF.Processors/CustomOutputFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
#if NET452_OR_GREATER || NETCOREAPP
using System.IO.Compression;
#endif
using System.Linq;

namespace MPF.Processors
{
/// <summary>
/// Represents a single output file with custom detection rules
/// </summary>
public class CustomOutputFile : OutputFile
internal class CustomOutputFile : OutputFile
{
/// <summary>
/// Optional func for determining if a file exists
Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/DiscImageCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down
4 changes: 2 additions & 2 deletions MPF.Processors/OutputFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace MPF.Processors
/// Represents attributes about an <see cref="OutputFile"/>
/// </summary>
[Flags]
public enum OutputFileFlags : ushort
internal enum OutputFileFlags : ushort
{
/// <summary>
/// Default state
Expand Down Expand Up @@ -47,7 +47,7 @@ public enum OutputFileFlags : ushort
/// <summary>
/// Represents a single output file
/// </summary>
public class OutputFile
internal class OutputFile
{
/// <summary>
/// Set of all filename variants
Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/PS3CFW.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/Redumper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down
3 changes: 1 addition & 2 deletions MPF.Processors/RegexOutputFile.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.IO;
#if NET452_OR_GREATER || NETCOREAPP
using System.IO.Compression;
Expand All @@ -11,7 +10,7 @@ namespace MPF.Processors
/// <summary>
/// Represents a single output file with a Regex-matched name
/// </summary>
public class RegexOutputFile : OutputFile
internal class RegexOutputFile : OutputFile
{
/// <summary>
/// Create an OutputFile with a single filename
Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/UmdImageCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down
2 changes: 1 addition & 1 deletion MPF.Processors/XboxBackupCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public override void GenerateSubmissionInfo(SubmissionInfo info, string basePath
}

/// <inheritdoc/>
public override List<OutputFile> GetOutputFiles(string baseFilename)
internal override List<OutputFile> GetOutputFiles(string baseFilename)
{
switch (Type)
{
Expand Down

0 comments on commit 9834d0e

Please sign in to comment.