summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-18 00:00:07 +0100
committerGitHub <noreply@github.com>2024-02-18 00:00:07 +0100
commit53f8383354470d58ab7a6cb5303708d59883adfa (patch)
tree66f830fa18e36c599315475670dfd92c5ef73b45 /src/core/core.cpp
parentMerge pull request #13040 from Kelebek1/timezone_shutdown (diff)
parentkernel: add and enable system suspend type (diff)
downloadyuzu-53f8383354470d58ab7a6cb5303708d59883adfa.tar
yuzu-53f8383354470d58ab7a6cb5303708d59883adfa.tar.gz
yuzu-53f8383354470d58ab7a6cb5303708d59883adfa.tar.bz2
yuzu-53f8383354470d58ab7a6cb5303708d59883adfa.tar.lz
yuzu-53f8383354470d58ab7a6cb5303708d59883adfa.tar.xz
yuzu-53f8383354470d58ab7a6cb5303708d59883adfa.tar.zst
yuzu-53f8383354470d58ab7a6cb5303708d59883adfa.zip
Diffstat (limited to '')
-rw-r--r--src/core/core.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 435ef6793..bd5f11d53 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -242,7 +242,7 @@ struct System::Impl {
void Run() {
std::unique_lock<std::mutex> lk(suspend_guard);
- kernel.SuspendApplication(false);
+ kernel.SuspendEmulation(false);
core_timing.SyncPause(false);
is_paused.store(false, std::memory_order_relaxed);
}
@@ -251,7 +251,7 @@ struct System::Impl {
std::unique_lock<std::mutex> lk(suspend_guard);
core_timing.SyncPause(true);
- kernel.SuspendApplication(true);
+ kernel.SuspendEmulation(true);
is_paused.store(true, std::memory_order_relaxed);
}
@@ -261,7 +261,7 @@ struct System::Impl {
std::unique_lock<std::mutex> StallApplication() {
std::unique_lock<std::mutex> lk(suspend_guard);
- kernel.SuspendApplication(true);
+ kernel.SuspendEmulation(true);
core_timing.SyncPause(true);
return lk;
}
@@ -269,7 +269,7 @@ struct System::Impl {
void UnstallApplication() {
if (!IsPaused()) {
core_timing.SyncPause(false);
- kernel.SuspendApplication(false);
+ kernel.SuspendEmulation(false);
}
}
@@ -459,7 +459,7 @@ struct System::Impl {
}
Network::CancelPendingSocketOperations();
- kernel.SuspendApplication(true);
+ kernel.SuspendEmulation(true);
if (services) {
services->KillNVNFlinger();
}