diff options
| author | bunnei <bunneidev@gmail.com> | 2020-04-21 18:59:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-21 18:59:16 -0400 |
| commit | cd47ccec496c9a961abf1dc58f8d2a4165c1bf2b (patch) | |
| tree | ec4adafd6b8f513a4d37e4594dfa864df4d6bb17 /src/core/file_sys/program_metadata.h | |
| parent | f293b1561132cbdf70551201a219ef5e5fc62338 (diff) | |
| parent | 9c12aef2f85ae50d6e6b25df54720fcb0bd46f14 (diff) | |
Merge pull request #3745 from bunnei/fix-homebrew-load
Fix process memory initialization for ELF and NRO
Diffstat (limited to 'src/core/file_sys/program_metadata.h')
| -rw-r--r-- | src/core/file_sys/program_metadata.h | 6 |
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); |
