From 2705685f077dab3ef72ccbebfc3e88081ea74dbc Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sat, 5 Nov 2022 23:42:55 -0700 Subject: [PATCH] Add placeholder LE interface (fixes #165) --- BurnOutSharp/BurnOutSharp.csproj | 5 +++++ .../Microsoft/LE/LinearExecutable.cs | 9 +++++++++ .../Interfaces/ILinearExecutableCheck.cs | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 BurnOutSharp/ExecutableType/Microsoft/LE/LinearExecutable.cs create mode 100644 BurnOutSharp/Interfaces/ILinearExecutableCheck.cs diff --git a/BurnOutSharp/BurnOutSharp.csproj b/BurnOutSharp/BurnOutSharp.csproj index a6d41f5e..cd4b714d 100644 --- a/BurnOutSharp/BurnOutSharp.csproj +++ b/BurnOutSharp/BurnOutSharp.csproj @@ -75,4 +75,9 @@ + + + + + diff --git a/BurnOutSharp/ExecutableType/Microsoft/LE/LinearExecutable.cs b/BurnOutSharp/ExecutableType/Microsoft/LE/LinearExecutable.cs new file mode 100644 index 00000000..5f9fdb92 --- /dev/null +++ b/BurnOutSharp/ExecutableType/Microsoft/LE/LinearExecutable.cs @@ -0,0 +1,9 @@ +namespace BurnOutSharp.ExecutableType.Microsoft.LE +{ + /// + /// PLACEHOLDER LE/LX + /// + public class LinearExecutable + { + } +} \ No newline at end of file diff --git a/BurnOutSharp/Interfaces/ILinearExecutableCheck.cs b/BurnOutSharp/Interfaces/ILinearExecutableCheck.cs new file mode 100644 index 00000000..09ef94ce --- /dev/null +++ b/BurnOutSharp/Interfaces/ILinearExecutableCheck.cs @@ -0,0 +1,19 @@ +using BurnOutSharp.ExecutableType.Microsoft.LE; + +namespace BurnOutSharp.Interfaces +{ + /// + /// Check a Linear Executable (LE) for protection + /// + internal interface ILinearExecutableCheck + { + /// + /// Check a path for protections based on file contents + /// + /// File to check for protection indicators + /// LinearExecutable representing the read-in file + /// True to include debug data, false otherwise + /// String containing any protections found in the file + string CheckNewExecutable(string file, LinearExecutable lex, bool includeDebug); + } +}