From ae9bd198a721efccc1b35fc2a094096333125b35 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 26 Sep 2019 19:53:55 -0400 Subject: [PATCH] Updated the NsSystemDeliveryInfo struct. --- nx/include/switch/services/ns.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/nx/include/switch/services/ns.h b/nx/include/switch/services/ns.h index 6c4c6479..43a1c966 100644 --- a/nx/include/switch/services/ns.h +++ b/nx/include/switch/services/ns.h @@ -103,12 +103,13 @@ typedef struct { /// SystemDeliveryInfo typedef struct { - u32 protocol_version; ///< Must be <= to and match a system-setting. - u8 unk_x4[0x8]; ///< Unknown. - u32 unk_xc; ///< Unknown. - u64 unk_x10; ///< Unknown. - u8 unk_x18[0xc8]; ///< Unknown. - u8 hmac[0x20]; ///< HMAC-SHA256 over the previous 0xe0-bytes. + u32 protocol_version; ///< Must be <= to and match a system-setting. + u8 unk_x4[0x8]; ///< Unused by NS, besides HMAC validation. + u32 systemupdate_meta_version; ///< SystemUpdate meta version. + u64 systemupdate_meta_titleid; ///< SystemUpdate meta titleID. + u8 unk_x18; ///< Copied into state by \ref nssuRequestSendSystemUpdate. + u8 unk_x19[0xc7]; ///< Unused by NS, besides HMAC validation. + u8 hmac[0x20]; ///< HMAC-SHA256 over the previous 0xe0-bytes. } NsSystemDeliveryInfo; /// Default size for \ref nssuControlSetupCardUpdate / \ref nssuControlSetupCardUpdateViaSystemUpdater. This is the size used by qlaunch for SetupCardUpdate.