More cleanup

This commit is contained in:
Matt Nadareski
2026-01-27 09:30:58 -05:00
parent 6c1efccb00
commit efef8d494e
35 changed files with 37 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
using System.IO;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,5 +1,6 @@
using System.IO;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,6 +1,7 @@
using BinaryObjectScanner.Interfaces;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -4,6 +4,7 @@ using BinaryObjectScanner.Interfaces;
using SabreTools.IO.Extensions;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -6,6 +6,7 @@ using BinaryObjectScanner.Interfaces;
using SabreTools.IO.Extensions;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -7,6 +7,7 @@ using BinaryObjectScanner.Data;
using SabreTools.Data.Models.ISO9660;
using SabreTools.IO.Extensions;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,5 +1,6 @@
using System.IO;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.IO;
using BinaryObjectScanner.Data;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.IO;
using BinaryObjectScanner.Data;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.IO;
using BinaryObjectScanner.Data;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,6 +1,7 @@
using System.IO;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using System.Collections.Generic;
using System.IO;
using BinaryObjectScanner.Data;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,5 +1,6 @@
using System.IO;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,5 +1,6 @@
using System.IO;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -1,5 +1,6 @@
using System.IO;
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner.FileType
{
/// <summary>

View File

@@ -153,7 +153,6 @@ namespace BinaryObjectScanner.FileType
protections.Add("SafeDiscLT for Macintosh (Unknown Version - Please report to us on GitHub)");
}
// The full line from a sample is as follows:
//
// The files securom_v7_01.dat and securom_v7_01.bak have been created during the installation of a SecuROM protected application.

View File

@@ -4,6 +4,8 @@ using System.Text.RegularExpressions;
using BinaryObjectScanner.Interfaces;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace BinaryObjectScanner.Packer
{
// TODO: Add extraction

View File

@@ -6,6 +6,7 @@ using SabreTools.Data.Models.ISO9660;
using SabreTools.IO.Extensions;
using SabreTools.Serialization.Wrappers;
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -8,6 +8,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -3,6 +3,7 @@ using BinaryObjectScanner.Interfaces;
using SabreTools.IO;
using SabreTools.IO.Matching;
#pragma warning disable IDE0230 // Use UTF-8 string literal
namespace BinaryObjectScanner.Protection
{
public class CactusDataShield : IContentCheck

View File

@@ -7,6 +7,7 @@ using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
using OHMN = SabreTools.Data.Models.COFF.OptionalHeaderMagicNumber;
#pragma warning disable IDE0230 // Use UTF-8 string literal
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -2,6 +2,7 @@ using System.Text.RegularExpressions;
using BinaryObjectScanner.Interfaces;
using SabreTools.Serialization.Wrappers;
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace BinaryObjectScanner.Protection
{
public class InterLok : IExecutableCheck<PortableExecutable>

View File

@@ -5,6 +5,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -7,6 +7,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -5,6 +5,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -6,6 +6,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -6,6 +6,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -7,6 +7,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -1,5 +1,7 @@
using SabreTools.Serialization.Wrappers;
#pragma warning disable CA1822 // Mark members as static
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -8,6 +8,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable IDE0060 // Remove unused parameter
namespace BinaryObjectScanner.Protection
{
/// <summary>

View File

@@ -1,6 +1,6 @@
namespace BinaryObjectScanner.Protection
{
public class phenoProtect
public class PhenoProtect
{
// Currently implemented as a text file check, more checks are likely possible but currently unknown.
// Current checks based off Redump entry 84082 are found in the InstallShield setup.inx file, but the game also checks if the original disc is present in the drive after installation as well, so it seems unlikely for the InstallShield check to be relevant at that stage.

View File

@@ -9,6 +9,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace BinaryObjectScanner.Protection
{
// This protection was called VOB ProtectCD / ProtectDVD in versions prior to 6

View File

@@ -9,6 +9,7 @@ using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
using static SabreTools.Data.Models.SecuROM.Constants;
#pragma warning disable IDE0059 // Unnecessary assignment of value
namespace BinaryObjectScanner.Protection
{
// TODO: Investigate SecuROM for Macintosh

View File

@@ -8,6 +8,7 @@ using SabreTools.IO.Extensions;
using SabreTools.IO.Matching;
using SabreTools.Serialization.Wrappers;
#pragma warning disable SYSLIB1045 // Convert to 'GeneratedRegexAttribute'
namespace BinaryObjectScanner.Protection
{
public class StarForce : IDiskImageCheck<ISO9660>, IExecutableCheck<PortableExecutable>, IPathCheck

View File

@@ -1,4 +1,5 @@
namespace BinaryObjectScanner
#pragma warning disable IDE0290 // Use primary constructor
namespace BinaryObjectScanner
{
/// <summary>
/// Struct representing protection scanning progress