aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/program_metadata.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-04-20 18:15:52 -0400
committerbunnei <bunneidev@gmail.com>2020-04-20 18:19:45 -0400
commitf0a7f050705734561311180adf1876ab392db61a (patch)
treea7a7e8cbacdf3b50690d34e426f77075cdedbfe8 /src/core/file_sys/program_metadata.h
parent200f69d2ffa11bb902c2d9cabb49027f4781fe11 (diff)
file_sys: program_metadata: Add a helper function for generating reasonable default metadata.
- We need this for homebrew process initialization.
Diffstat (limited to 'src/core/file_sys/program_metadata.h')
-rw-r--r--src/core/file_sys/program_metadata.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h
index f8759a396..35069972b 100644
--- a/src/core/file_sys/program_metadata.h
+++ b/src/core/file_sys/program_metadata.h
@@ -44,9 +44,13 @@ public:
ProgramMetadata();
~ProgramMetadata();
+ /// Gets a default ProgramMetadata configuration, should only be used for homebrew formats where
+ /// we do not have an NPDM file
+ static ProgramMetadata GetDefault();
+
Loader::ResultStatus Load(VirtualFile file);
- // Load from parameters instead of NPDM file, used for KIP
+ /// Load from parameters instead of NPDM file, used for KIP
void LoadManual(bool is_64_bit, ProgramAddressSpaceType address_space, s32 main_thread_prio,
u32 main_thread_core, u32 main_thread_stack_size, u64 title_id,
u64 filesystem_permissions, KernelCapabilityDescriptors capabilities);