diff options
author | Lioncash <mathew1800@gmail.com> | 2019-11-12 11:20:26 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-11-12 13:55:39 +0100 |
commit | 23878bf360b95561729ee1208118cb8e13b6aeca (patch) | |
tree | f82392a84fbb6fab0db80956d44ec763cfe7cd50 /src/core | |
parent | gdbstub: Resolve sign conversion errors (diff) | |
download | yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.tar yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.tar.gz yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.tar.bz2 yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.tar.lz yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.tar.xz yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.tar.zst yuzu-23878bf360b95561729ee1208118cb8e13b6aeca.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/file_sys/kernel_executable.cpp | 2 | ||||
-rw-r--r-- | src/core/file_sys/program_metadata.cpp | 6 | ||||
-rw-r--r-- | src/core/file_sys/program_metadata.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/core/file_sys/kernel_executable.cpp b/src/core/file_sys/kernel_executable.cpp index 371300684..76313679d 100644 --- a/src/core/file_sys/kernel_executable.cpp +++ b/src/core/file_sys/kernel_executable.cpp @@ -147,7 +147,7 @@ std::vector<u32> KIP::GetKernelCapabilities() const { } s32 KIP::GetMainThreadPriority() const { - return header.main_thread_priority; + return static_cast<s32>(header.main_thread_priority); } u32 KIP::GetMainThreadStackSize() const { diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp index 7310b3602..1d6c30962 100644 --- a/src/core/file_sys/program_metadata.cpp +++ b/src/core/file_sys/program_metadata.cpp @@ -52,14 +52,14 @@ Loader::ResultStatus ProgramMetadata::Load(VirtualFile file) { } void ProgramMetadata::LoadManual(bool is_64_bit, ProgramAddressSpaceType address_space, - u8 main_thread_prio, u8 main_thread_core, + s32 main_thread_prio, u32 main_thread_core, u32 main_thread_stack_size, u64 title_id, u64 filesystem_permissions, KernelCapabilityDescriptors capabilities) { npdm_header.has_64_bit_instructions.Assign(is_64_bit); npdm_header.address_space_type.Assign(address_space); - npdm_header.main_thread_priority = main_thread_prio; - npdm_header.main_thread_cpu = main_thread_core; + npdm_header.main_thread_priority = static_cast<u8>(main_thread_prio); + npdm_header.main_thread_cpu = static_cast<u8>(main_thread_core); npdm_header.main_stack_size = main_thread_stack_size; aci_header.title_id = title_id; aci_file_access.permissions = filesystem_permissions; diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h index 88ec97d85..f8759a396 100644 --- a/src/core/file_sys/program_metadata.h +++ b/src/core/file_sys/program_metadata.h @@ -47,8 +47,8 @@ public: Loader::ResultStatus Load(VirtualFile file); // Load from parameters instead of NPDM file, used for KIP - void LoadManual(bool is_64_bit, ProgramAddressSpaceType address_space, u8 main_thread_prio, - u8 main_thread_core, u32 main_thread_stack_size, u64 title_id, + 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); bool Is64BitProgram() const; |