mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-09 02:16:55 +00:00
Notes about hidden resources
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user