summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-12-14 17:57:40 -0800
committerGravatar bunnei2020-12-28 16:33:48 -0800
commit6d2f9428c5387abaae03478c9204d164a718ffe5 (patch)
tree3dffeb0599cad78141c2bd62c85c899bd0adbf12 /src
parentvideo_core: gpu_thread: Do not wait when system is powered down. (diff)
downloadyuzu-6d2f9428c5387abaae03478c9204d164a718ffe5.tar.gz
yuzu-6d2f9428c5387abaae03478c9204d164a718ffe5.tar.xz
yuzu-6d2f9428c5387abaae03478c9204d164a718ffe5.zip
core: kernel: Clear process list earlier.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 1bf4c3355..b3661e4c1 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -76,6 +76,8 @@ struct KernelCore::Impl {
76 } 76 }
77 77
78 void Shutdown() { 78 void Shutdown() {
79 process_list.clear();
80
79 next_object_id = 0; 81 next_object_id = 0;
80 next_kernel_process_id = Process::InitialKIPIDMin; 82 next_kernel_process_id = Process::InitialKIPIDMin;
81 next_user_process_id = Process::ProcessIDMin; 83 next_user_process_id = Process::ProcessIDMin;
@@ -89,8 +91,6 @@ struct KernelCore::Impl {
89 91
90 cores.clear(); 92 cores.clear();
91 93
92 process_list.clear();
93
94 current_process = nullptr; 94 current_process = nullptr;
95 95
96 system_resource_limit = nullptr; 96 system_resource_limit = nullptr;