mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 14:54:56 +00:00
Add MS-DOS stub to NE/LE/LX/PE builders
This commit is contained in:
@@ -30,6 +30,14 @@ namespace BurnOutSharp.Builder
|
||||
// Create a new executable to fill
|
||||
var executable = new Executable();
|
||||
|
||||
// Parse the MS-DOS stub
|
||||
var stub = MSDOS.ParseExecutable(data, offset);
|
||||
if (stub?.Header == null || stub.Header.NewExeHeaderAddr == 0)
|
||||
return null;
|
||||
|
||||
// Set the MS-DOS stub
|
||||
executable.Stub = stub;
|
||||
|
||||
// TODO: Implement LE/LX parsing
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,14 @@ namespace BurnOutSharp.Builder
|
||||
// Create a new executable to fill
|
||||
var executable = new Executable();
|
||||
|
||||
// Parse the MS-DOS stub
|
||||
var stub = MSDOS.ParseExecutable(data, offset);
|
||||
if (stub?.Header == null || stub.Header.NewExeHeaderAddr == 0)
|
||||
return null;
|
||||
|
||||
// Set the MS-DOS stub
|
||||
executable.Stub = stub;
|
||||
|
||||
// TODO: Implement NE parsing
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,14 @@ namespace BurnOutSharp.Builder
|
||||
// Create a new executable to fill
|
||||
var executable = new Executable();
|
||||
|
||||
// Parse the MS-DOS stub
|
||||
var stub = MSDOS.ParseExecutable(data, offset);
|
||||
if (stub?.Header == null || stub.Header.NewExeHeaderAddr == 0)
|
||||
return null;
|
||||
|
||||
// Set the MS-DOS stub
|
||||
executable.Stub = stub;
|
||||
|
||||
// TODO: Implement PE parsing
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user