mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-13 05:35:24 +00:00
Add NE resource name/type string output
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using BurnOutSharp.Builder;
|
||||
using System.Text;
|
||||
using BurnOutSharp.Builder;
|
||||
|
||||
namespace ExecutableTest
|
||||
{
|
||||
@@ -269,6 +270,21 @@ namespace ExecutableTest
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (executable.ResourceTable.TypeAndNameStrings.Count == 0)
|
||||
{
|
||||
Console.WriteLine(" No resource table type/name strings");
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (var typeAndNameString in executable.ResourceTable.TypeAndNameStrings)
|
||||
{
|
||||
Console.WriteLine($" Resource Type/Name Offset {typeAndNameString.Key}");
|
||||
Console.WriteLine($" Length = {typeAndNameString.Value.Length}");
|
||||
Console.WriteLine($" Text = {Encoding.ASCII.GetString(typeAndNameString.Value.Text)}");
|
||||
}
|
||||
}
|
||||
Console.WriteLine();
|
||||
|
||||
// TODO: Add table printing
|
||||
|
||||
Reference in New Issue
Block a user