aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-05 16:59:34 -0500
committerLioncash <mathew1800@gmail.com>2018-12-05 16:59:37 -0500
commitf75d6b7dd1c41f2cde13b9bc4168da1b07209ccc (patch)
tree9933848e5444604641598f84361a93c52bf5d8c7 /src/core/hle/kernel/process.cpp
parent44e35994ce6cc8326d5a50d96227160bada5fcab (diff)
kernel/process: Set ideal core from metadata
A very trivial change. If metadata is available, the process should use it to retrieve the desired core for the process to run on.
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 4ecb8c9263..5b76e5717a 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -50,6 +50,7 @@ SharedPtr<ResourceLimit> Process::GetResourceLimit() const {
void Process::LoadFromMetadata(const FileSys::ProgramMetadata& metadata) {
program_id = metadata.GetTitleID();
+ ideal_processor = metadata.GetMainThreadCore();
is_64bit_process = metadata.Is64BitProgram();
vm_manager.Reset(metadata.GetAddressSpaceType());
}