From 547eecf119c4b417f6573fb24b2c3239c58b103e Mon Sep 17 00:00:00 2001
From: Lioncash <mathew1800@gmail.com>
Date: Wed, 5 Dec 2018 16:59:34 -0500
Subject: [PATCH] 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.
---
 src/core/hle/kernel/process.cpp | 1 +
 1 file changed, 1 insertion(+)

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());
 }