diff --git a/libstratosphere/include/stratosphere/ldr/ldr_types.hpp b/libstratosphere/include/stratosphere/ldr/ldr_types.hpp index 5cc2fbb8..475c87b5 100644 --- a/libstratosphere/include/stratosphere/ldr/ldr_types.hpp +++ b/libstratosphere/include/stratosphere/ldr/ldr_types.hpp @@ -94,12 +94,13 @@ namespace ams::ldr { }; enum Flag : u32 { - Flag_CompressedText = (1 << 0), - Flag_CompressedRo = (1 << 1), - Flag_CompressedRw = (1 << 2), - Flag_CheckHashText = (1 << 3), - Flag_CheckHashRo = (1 << 4), - Flag_CheckHashRw = (1 << 5), + Flag_CompressedText = (1 << 0), + Flag_CompressedRo = (1 << 1), + Flag_CompressedRw = (1 << 2), + Flag_CheckHashText = (1 << 3), + Flag_CheckHashRo = (1 << 4), + Flag_CheckHashRw = (1 << 5), + Flag_PreventCodeReads = (1 << 6), }; struct SegmentInfo { @@ -180,6 +181,8 @@ namespace ams::ldr { AcidFlag_PoolPartitionShift = 2, AcidFlag_PoolPartitionMask = (0xF << AcidFlag_PoolPartitionShift), + + AcidFlag_LoadBrowserCoreDll = (1 << 7), }; enum PoolPartition { diff --git a/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp b/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp index b8e7bcd4..f6cfc77a 100644 --- a/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp +++ b/libstratosphere/include/stratosphere/ncm/ncm_system_content_meta_id.hpp @@ -102,6 +102,8 @@ namespace ams::ncm { static const SystemProgramId End; + static const SystemProgramId BrowserCoreDll; + static const SystemProgramId Manu; static const SystemProgramId Htc; static const SystemProgramId DmntGen2; @@ -212,10 +214,12 @@ namespace ams::ncm { inline constexpr const SystemProgramId SystemProgramId::End = { 0x01000000000007FFul }; - inline constexpr const SystemProgramId SystemProgramId::Manu = { 0x010000000000B14Aul }; - inline constexpr const SystemProgramId SystemProgramId::Htc = { 0x010000000000B240ul }; - inline constexpr const SystemProgramId SystemProgramId::DmntGen2 = { 0x010000000000D609ul }; - inline constexpr const SystemProgramId SystemProgramId::DevServer = { 0x010000000000D623ul }; + inline constexpr const SystemProgramId SystemProgramId::BrowserCoreDll = { 0x010000000000085Dul }; + + inline constexpr const SystemProgramId SystemProgramId::Manu = { 0x010000000000B14Aul }; + inline constexpr const SystemProgramId SystemProgramId::Htc = { 0x010000000000B240ul }; + inline constexpr const SystemProgramId SystemProgramId::DmntGen2 = { 0x010000000000D609ul }; + inline constexpr const SystemProgramId SystemProgramId::DevServer = { 0x010000000000D623ul }; inline constexpr bool IsSystemProgramId(const ProgramId &program_id) { return (SystemProgramId::Start <= program_id && program_id <= SystemProgramId::End) || IsAtmosphereProgramId(program_id);