Merge pull request #2811 from ZachyCatGames/patch-1

pgl: GetHostContentMetaInfo returns a ncm::ContentMetaType
This commit is contained in:
hexkyz 2026-05-30 00:32:39 +01:00 committed by GitHub
commit 15c434f185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -41,7 +41,8 @@ namespace ams::pgl {
u32 version;
ncm::ContentType content_type;
u8 id_offset;
u8 reserved_0E[2];
ncm::ContentMetaType content_meta_type;
u8 reserved_0F;
static constexpr ContentMetaInfo Make(u64 id, u32 version, ncm::ContentType content_type, u8 id_offset) {
return {

View File

@ -345,10 +345,11 @@ namespace ams::pgl::srv {
/* Get the content meta info. */
*out = {
.id = reader.GetProgramId().value,
.version = reader.GetProgramVersion(),
.content_type = ncm::ContentType::Program,
.id_offset = reader.GetProgramIndex(),
.id = reader.GetProgramId().value,
.version = reader.GetProgramVersion(),
.content_type = ncm::ContentType::Program,
.id_offset = reader.GetProgramIndex(),
.content_meta_type = reader.GetContentMetaType(),
};
R_SUCCEED();