diff options
| author | 2023-10-21 16:47:43 -0400 | |
|---|---|---|
| committer | 2023-10-21 20:03:41 -0400 | |
| commit | 8c59543ee32c8bff575bab7ec1e70f76f8eda437 (patch) | |
| tree | afeee77ba66daf7ec6bff18515c8fbf1bb8468e0 /src/core/file_sys | |
| parent | Merge pull request #11831 from liamwhite/hosversionbetween (diff) | |
| download | yuzu-8c59543ee32c8bff575bab7ec1e70f76f8eda437.tar.gz yuzu-8c59543ee32c8bff575bab7ec1e70f76f8eda437.tar.xz yuzu-8c59543ee32c8bff575bab7ec1e70f76f8eda437.zip | |
kernel: update KProcess
Diffstat (limited to 'src/core/file_sys')
| -rw-r--r-- | src/core/file_sys/program_metadata.cpp | 10 | ||||
| -rw-r--r-- | src/core/file_sys/program_metadata.h | 15 |
2 files changed, 14 insertions, 11 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp index 8e291ff67..763a44fee 100644 --- a/src/core/file_sys/program_metadata.cpp +++ b/src/core/file_sys/program_metadata.cpp | |||
| @@ -104,16 +104,16 @@ Loader::ResultStatus ProgramMetadata::Reload(VirtualFile file) { | |||
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | /*static*/ ProgramMetadata ProgramMetadata::GetDefault() { | 106 | /*static*/ ProgramMetadata ProgramMetadata::GetDefault() { |
| 107 | // Allow use of cores 0~3 and thread priorities 1~63. | 107 | // Allow use of cores 0~3 and thread priorities 16~63. |
| 108 | constexpr u32 default_thread_info_capability = 0x30007F7; | 108 | constexpr u32 default_thread_info_capability = 0x30043F7; |
| 109 | 109 | ||
| 110 | ProgramMetadata result; | 110 | ProgramMetadata result; |
| 111 | 111 | ||
| 112 | result.LoadManual( | 112 | result.LoadManual( |
| 113 | true /*is_64_bit*/, FileSys::ProgramAddressSpaceType::Is39Bit /*address_space*/, | 113 | true /*is_64_bit*/, FileSys::ProgramAddressSpaceType::Is39Bit /*address_space*/, |
| 114 | 0x2c /*main_thread_prio*/, 0 /*main_thread_core*/, 0x00100000 /*main_thread_stack_size*/, | 114 | 0x2c /*main_thread_prio*/, 0 /*main_thread_core*/, 0x100000 /*main_thread_stack_size*/, |
| 115 | 0 /*title_id*/, 0xFFFFFFFFFFFFFFFF /*filesystem_permissions*/, | 115 | 0 /*title_id*/, 0xFFFFFFFFFFFFFFFF /*filesystem_permissions*/, 0 /*system_resource_size*/, |
| 116 | 0x1FE00000 /*system_resource_size*/, {default_thread_info_capability} /*capabilities*/); | 116 | {default_thread_info_capability} /*capabilities*/); |
| 117 | 117 | ||
| 118 | return result; | 118 | return result; |
| 119 | } | 119 | } |
diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h index 9f8e74b13..76ee97d78 100644 --- a/src/core/file_sys/program_metadata.h +++ b/src/core/file_sys/program_metadata.h | |||
| @@ -73,6 +73,9 @@ public: | |||
| 73 | u64 GetFilesystemPermissions() const; | 73 | u64 GetFilesystemPermissions() const; |
| 74 | u32 GetSystemResourceSize() const; | 74 | u32 GetSystemResourceSize() const; |
| 75 | const KernelCapabilityDescriptors& GetKernelCapabilities() const; | 75 | const KernelCapabilityDescriptors& GetKernelCapabilities() const; |
| 76 | const std::array<u8, 0x10>& GetName() const { | ||
| 77 | return npdm_header.application_name; | ||
| 78 | } | ||
| 76 | 79 | ||
| 77 | void Print() const; | 80 | void Print() const; |
| 78 | 81 | ||
| @@ -164,14 +167,14 @@ private: | |||
| 164 | u32_le unk_size_2; | 167 | u32_le unk_size_2; |
| 165 | }; | 168 | }; |
| 166 | 169 | ||
| 167 | Header npdm_header; | 170 | Header npdm_header{}; |
| 168 | AciHeader aci_header; | 171 | AciHeader aci_header{}; |
| 169 | AcidHeader acid_header; | 172 | AcidHeader acid_header{}; |
| 170 | 173 | ||
| 171 | FileAccessControl acid_file_access; | 174 | FileAccessControl acid_file_access{}; |
| 172 | FileAccessHeader aci_file_access; | 175 | FileAccessHeader aci_file_access{}; |
| 173 | 176 | ||
| 174 | KernelCapabilityDescriptors aci_kernel_capabilities; | 177 | KernelCapabilityDescriptors aci_kernel_capabilities{}; |
| 175 | }; | 178 | }; |
| 176 | 179 | ||
| 177 | } // namespace FileSys | 180 | } // namespace FileSys |