Add placeholder for figuring something out later

This commit is contained in:
Matt Nadareski
2025-09-11 09:59:42 -04:00
parent 9dcf3b9e0a
commit 367aab0f83

View File

@@ -250,6 +250,23 @@ namespace SabreTools.Serialization.Deserializers
}
}
// TODO: Figure out how to use this in lieu of the current ParseImportAddressTables
if (optionalHeader.ImportAddressTable != null)
{
offset = initialOffset
+ optionalHeader.ImportAddressTable.VirtualAddress.ConvertVirtualAddress(pex.SectionTable);
if (offset > initialOffset && offset < data.Length)
{
// Get the required table size
int tableSize = (int)optionalHeader.ImportAddressTable.Size;
// Read the table data
byte[]? tableData = data.ReadFrom(offset, tableSize, retainPosition: true);
// Remaining code goes here
}
}
#endregion
#region Resource Directory Table