| 121 | } |
| 122 | |
| 123 | void 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 | |
| 139 | bool ProgramMetadata::Is64BitProgram() const { |
| 140 | return npdm_header.has_64_bit_instructions.As<bool>(); |
no test coverage detected