summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/kernel_helpers.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-29 16:24:52 +0100
committerGitHub <noreply@github.com>2023-10-29 16:24:52 +0100
commit6aee148b170e6886e58a3996f729b2cc87329e95 (patch)
tree39efd9469af6a922ee5f38d906940412333c1455 /src/core/hle/service/kernel_helpers.cpp
parentMerge pull request #11827 from liamwhite/preallocated (diff)
parentkernel: make sure new process is in list (diff)
downloadyuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar
yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.gz
yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.bz2
yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.lz
yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.xz
yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.tar.zst
yuzu-6aee148b170e6886e58a3996f729b2cc87329e95.zip
Diffstat (limited to 'src/core/hle/service/kernel_helpers.cpp')
-rw-r--r--src/core/hle/service/kernel_helpers.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hle/service/kernel_helpers.cpp b/src/core/hle/service/kernel_helpers.cpp
index 6a313a03b..f51e63564 100644
--- a/src/core/hle/service/kernel_helpers.cpp
+++ b/src/core/hle/service/kernel_helpers.cpp
@@ -21,10 +21,8 @@ ServiceContext::ServiceContext(Core::System& system_, std::string name_)
// Create the process.
process = Kernel::KProcess::Create(kernel);
- ASSERT(Kernel::KProcess::Initialize(process, system_, std::move(name_),
- Kernel::KProcess::ProcessType::KernelInternal,
- kernel.GetSystemResourceLimit())
- .IsSuccess());
+ ASSERT(R_SUCCEEDED(process->Initialize(Kernel::Svc::CreateProcessParameter{},
+ kernel.GetSystemResourceLimit(), false)));
// Register the process.
Kernel::KProcess::Register(kernel, process);