MCPcopy Create free account
hub / github.com/citron-neo/emulator / LoadManual

Method LoadManual

src/core/file_sys/program_metadata.cpp:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void ProgramMetadata::LoadManual(bool is_64_bit, ProgramAddressSpaceType address_space,
124 s32 main_thread_prio, u32 main_thread_core,
125 u32 main_thread_stack_size, u64 title_id,
126 u64 filesystem_permissions, u32 system_resource_size,
127 KernelCapabilityDescriptors capabilities) {
128 npdm_header.has_64_bit_instructions.Assign(is_64_bit);
129 npdm_header.address_space_type.Assign(address_space);
130 npdm_header.main_thread_priority = static_cast<u8>(main_thread_prio);
131 npdm_header.main_thread_cpu = static_cast<u8>(main_thread_core);
132 npdm_header.main_stack_size = main_thread_stack_size;
133 aci_header.title_id = title_id;
134 aci_file_access.permissions = filesystem_permissions;
135 npdm_header.system_resource_size = system_resource_size;
136 aci_kernel_capabilities = std::move(capabilities);
137}
138
139bool ProgramMetadata::Is64BitProgram() const {
140 return npdm_header.has_64_bit_instructions.As<bool>();

Callers 2

GetDefaultMethod · 0.80
LoadMethod · 0.80

Calls 1

AssignMethod · 0.45

Tested by

no test coverage detected