aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/program_metadata.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-05 00:20:26 -0400
committerZach Hilman <zachhilman@gmail.com>2019-06-05 00:20:26 -0400
commitb550a01f743c6324ce3174093d1314eaf2c8ef54 (patch)
tree46d9d027a0e8cfc1bf5851f753df3d287db23807 /src/core/file_sys/program_metadata.h
parent0f3709682094c0172bb304f1f238d15535a07826 (diff)
program_metadata: Add function to load meta from raw parameters
Needed for KIP loading as KIPs do not have an NPDM but do have the essential parts of the data within.
Diffstat (limited to 'src/core/file_sys/program_metadata.h')
-rw-r--r--src/core/file_sys/program_metadata.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h
index 7de5b9cf9..43bf2820a 100644
--- a/src/core/file_sys/program_metadata.h
+++ b/src/core/file_sys/program_metadata.h
@@ -46,6 +46,11 @@ public:
Loader::ResultStatus Load(VirtualFile file);
+ // Load from parameters instead of NPDM file, used for KIP
+ void LoadManual(bool is_64_bit, ProgramAddressSpaceType address_space, u8 main_thread_prio,
+ u8 main_thread_core, u32 main_thread_stack_size, u64 title_id,
+ u64 filesystem_permissions, KernelCapabilityDescriptors capabilities);
+
bool Is64BitProgram() const;
ProgramAddressSpaceType GetAddressSpaceType() const;
u8 GetMainThreadPriority() const;