mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-20 05:03:11 +00:00
* Fix endianness in STFS Descriptor * Support optional header for installer packages * Fix field types * Fix syntax * Fix build
67 lines
2.1 KiB
C#
67 lines
2.1 KiB
C#
namespace SabreTools.Data.Models.STFS
|
|
{
|
|
/// <see href="https://free60.org/System-Software/Formats/STFS/"/>
|
|
public static class Constants
|
|
{
|
|
/// <summary>
|
|
/// STFS LIVE magic number ("LIVE")
|
|
/// </summary>
|
|
public static readonly byte[] MagicBytesLIVE = [0x4C, 0x49, 0x56, 0x45];
|
|
|
|
/// <summary>
|
|
/// STFS LIVE magic string ("LIVE")
|
|
/// </summary>
|
|
public const string MagicStringLIVE = "LIVE";
|
|
|
|
/// <summary>
|
|
/// STFS PIRS magic number ("PIRS")
|
|
/// </summary>
|
|
public static readonly byte[] MagicBytesPIRS = [0x50, 0x49, 0x52, 0x53];
|
|
|
|
/// <summary>
|
|
/// STFS PIRS magic string ("PIRS")
|
|
/// </summary>
|
|
public const string MagicStringPIRS = "PIRS";
|
|
|
|
/// <summary>
|
|
/// STFS CON magic number ("CON ")
|
|
/// </summary>
|
|
public static readonly byte[] MagicBytesCON = [0x43, 0x4F, 0x4E, 0x20];
|
|
|
|
/// <summary>
|
|
/// STFS CON magic string ("CON")
|
|
/// </summary>
|
|
public const string MagicStringCON = "CON ";
|
|
|
|
/// <summary>
|
|
/// Standard length of all fixed STFS header fields
|
|
/// </summary>
|
|
public const uint MinimumHeaderSize = 0x971A;
|
|
|
|
/// <summary>
|
|
/// System Update installer type magic string
|
|
/// </summary>
|
|
public const string InstallerTypeSystemUpdate = "SUPD";
|
|
|
|
/// <summary>
|
|
/// Title Update installer type magic string
|
|
/// </summary>
|
|
public const string InstallerTypeTitleUpdate = "TUPD";
|
|
|
|
/// <summary>
|
|
/// System Update Cache installer type magic string
|
|
/// </summary>
|
|
public const string InstallerTypeSystemUpdateCache = "P$SU";
|
|
|
|
/// <summary>
|
|
/// Title Update Cache installer type magic string
|
|
/// </summary>
|
|
public const string InstallerTypeTitleUpdateCache = "P$TU";
|
|
|
|
/// <summary>
|
|
/// Title Content Cache installer type magic string
|
|
/// </summary>
|
|
public const string InstallerTypeTitleContentCache = "P$TC";
|
|
}
|
|
}
|