summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOatmealDome <julian@oatmealdome.me>2021-11-11 01:23:59 +0100
committerOatmealDome <julian@oatmealdome.me>2021-11-11 04:01:05 +0100
commit50acc0da20781060b822c3abc7e3d7e6bce5fdee (patch)
tree599b7cd5069692d49624870d9ebf65caf1407315 /src
parentMerge pull request #7303 from Morph1984/swkbd-confirm-skip-textcheck (diff)
downloadyuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.tar
yuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.tar.gz
yuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.tar.bz2
yuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.tar.lz
yuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.tar.xz
yuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.tar.zst
yuzu-50acc0da20781060b822c3abc7e3d7e6bce5fdee.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/program_metadata.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/file_sys/program_metadata.cpp b/src/core/file_sys/program_metadata.cpp
index 35a53d36c..4e46c24cf 100644
--- a/src/core/file_sys/program_metadata.cpp
+++ b/src/core/file_sys/program_metadata.cpp
@@ -53,13 +53,16 @@ Loader::ResultStatus ProgramMetadata::Load(VirtualFile file) {
}
/*static*/ ProgramMetadata ProgramMetadata::GetDefault() {
+ // Allow use of cores 0~3 and thread priorities 1~63.
+ constexpr u32 default_thread_info_capability = 0x30007F7;
+
ProgramMetadata result;
result.LoadManual(
true /*is_64_bit*/, FileSys::ProgramAddressSpaceType::Is39Bit /*address_space*/,
0x2c /*main_thread_prio*/, 0 /*main_thread_core*/, 0x00100000 /*main_thread_stack_size*/,
0 /*title_id*/, 0xFFFFFFFFFFFFFFFF /*filesystem_permissions*/,
- 0x1FE00000 /*system_resource_size*/, {} /*capabilities*/);
+ 0x1FE00000 /*system_resource_size*/, {default_thread_info_capability} /*capabilities*/);
return result;
}