From 9029e9f38d212971585720ea7b25678d765ac54e Mon Sep 17 00:00:00 2001 From: yellows8 Date: Sat, 23 Nov 2019 20:22:29 -0500 Subject: [PATCH] Added NcmPackagedContentInfo. --- nx/include/switch/services/ncm_types.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nx/include/switch/services/ncm_types.h b/nx/include/switch/services/ncm_types.h index aa9b20a9..6b673f8e 100644 --- a/nx/include/switch/services/ncm_types.h +++ b/nx/include/switch/services/ncm_types.h @@ -6,6 +6,7 @@ */ #pragma once #include "../types.h" +#include "../crypto/sha256.h" /// StorageId typedef enum { @@ -90,6 +91,12 @@ typedef struct { u8 id_offset; ///< Offset of this content. Unused by most applications. } NcmContentInfo; +/// PackagedContentInfo +typedef struct { + u8 hash[SHA256_HASH_SIZE]; + NcmContentInfo info; +} NcmPackagedContentInfo; + /// Used by system updates. They share the exact same struct as NcmContentMetaKey typedef NcmContentMetaKey NcmContentMetaInfo;