mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-07-17 22:35:09 +00:00
Add missing MS-DOS stub to builders
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user