mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 14:55:11 +00:00
Support optional header in STFS, fix endianness in Descriptor (#80)
* Fix endianness in STFS Descriptor * Support optional header for installer packages * Fix field types * Fix syntax * Fix build
This commit is contained in:
@@ -34,8 +34,8 @@ namespace SabreTools.Data.Models.STFS
|
||||
public byte[] HeaderHash { get; set; } = new byte[20];
|
||||
|
||||
/// <summary>
|
||||
/// Size of the header, in bytes (from ??? to ???)
|
||||
/// The actual end of header is padded and zeroed up until next multiple of 4096 bytes
|
||||
/// Size of the header, in bytes (from start of file)
|
||||
/// The actual end of header is padded and zeroed up until next block (multiple of 4096 bytes)
|
||||
/// </summary>
|
||||
/// <remarks>Big-endian</remarks>
|
||||
public uint HeaderSize { get; set; }
|
||||
@@ -274,5 +274,10 @@ namespace SabreTools.Data.Models.STFS
|
||||
/// </summary>
|
||||
/// <remarks>If present, 768 bytes, UTF-8 string</remarks>
|
||||
public byte[]? AdditionalDisplayDescriptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Optional field present on installer update/cache packages
|
||||
/// </summary>
|
||||
public InstallerHeader? InstallerHeader { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user