diff options
author | Liam <byteslice@airmail.cc> | 2022-05-31 01:35:01 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-06-01 06:01:25 +0200 |
commit | fb4b3c127f7c390358d7f4cadd2f58de116fec48 (patch) | |
tree | e2588a859d364a32be0cd9e0401a345c6492d1a7 /src/core/hle/kernel/k_process.cpp | |
parent | Merge pull request #8368 from german77/seventimes (diff) | |
download | yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar.gz yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar.bz2 yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar.lz yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar.xz yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.tar.zst yuzu-fb4b3c127f7c390358d7f4cadd2f58de116fec48.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/k_process.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cpp index 490e31fc7..dcfeacccd 100644 --- a/src/core/hle/kernel/k_process.cpp +++ b/src/core/hle/kernel/k_process.cpp @@ -64,6 +64,10 @@ void SetupMainThread(Core::System& system, KProcess& owner_process, u32 priority { KScopedSchedulerLock lock{kernel}; thread->SetState(ThreadState::Runnable); + + if (system.DebuggerEnabled()) { + thread->RequestSuspend(SuspendType::Debug); + } } } } // Anonymous namespace |