Notes about hidden resources

This commit is contained in:
Matt Nadareski
2025-09-09 17:15:25 -04:00
parent 473b6de09b
commit 935ec00c86

View File

@@ -1552,6 +1552,13 @@ namespace SabreTools.Serialization.Deserializers
if (!topLevel)
return obj;
// TODO: Revisit the logic for this
// - Use the table boundaries not the section ones
// - Don't check for signatures, just read anything that's there
// - If alignment is used, use the one from the optional header
// - Should this be moved out of this method entirely?
#region Hidden Resources
// If we're not aligned to a section
var firstSection = Array.Find(sections, s => s != null && s.PointerToRawData == tableStart);
if (firstSection == null)
@@ -1596,6 +1603,8 @@ namespace SabreTools.Serialization.Deserializers
};
}
#endregion
return obj;
}