Merge pull request #2811 from ZachyCatGames/patch-1

pgl: GetHostContentMetaInfo returns a ncm::ContentMetaType
This commit is contained in:
hexkyz authored and naga committed 2026-06-17 00:59:05 +02:00
1 parent 60cc15953d
commit 3446630692
2 files changed
+7 -5

No files matched your search

@@ -41,7 +41,8 @@ namespace ams::pgl {
u32 version; u32 version;
ncm::ContentType content_type; ncm::ContentType content_type;
u8 id_offset; 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) { static constexpr ContentMetaInfo Make(u64 id, u32 version, ncm::ContentType content_type, u8 id_offset) {
return { return {
@@ -345,10 +345,11 @@ namespace ams::pgl::srv {
/* Get the content meta info. */ /* Get the content meta info. */
*out = { *out = {
.id = reader.GetProgramId().value, .id = reader.GetProgramId().value,
.version = reader.GetProgramVersion(), .version = reader.GetProgramVersion(),
.content_type = ncm::ContentType::Program, .content_type = ncm::ContentType::Program,
.id_offset = reader.GetProgramIndex(), .id_offset = reader.GetProgramIndex(),
.content_meta_type = reader.GetContentMetaType(),
}; };
R_SUCCEED(); R_SUCCEED();