Add missing MS-DOS stub to builders

This commit is contained in:
Matt Nadareski
2022-11-06 00:01:24 -07:00
parent e55226e685
commit 703a132a61
3 changed files with 22 additions and 0 deletions

View File

@@ -79,6 +79,13 @@ namespace BurnOutSharp.Builder
// Create a new executable to fill
var executable = new Executable();
// Parse the MS-DOS stub
var stub = MSDOS.ParseExecutable(data);
if (stub?.Header == null || stub.Header.NewExeHeaderAddr == 0)
return null;
// Set the MS-DOS stub
// TODO: Implement LE/LX parsing
return null;
}

View File

@@ -79,6 +79,14 @@ namespace BurnOutSharp.Builder
// Create a new executable to fill
var executable = new Executable();
// Parse the MS-DOS stub
var stub = MSDOS.ParseExecutable(data);
if (stub?.Header == null || stub.Header.NewExeHeaderAddr == 0)
return null;
// Set the MS-DOS stub
executable.Stub = stub;
// TODO: Implement NE parsing
return null;
}

View File

@@ -79,6 +79,13 @@ namespace BurnOutSharp.Builder
// Create a new executable to fill
var executable = new Executable();
// Parse the MS-DOS stub
var stub = MSDOS.ParseExecutable(data);
if (stub?.Header == null || stub.Header.NewExeHeaderAddr == 0)
return null;
// Set the MS-DOS stub
// TODO: Implement PE parsing
return null;
}