diff options
author | Liam <byteslice@airmail.cc> | 2023-08-26 23:12:05 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-08-26 23:12:05 +0200 |
commit | b7523d6fa77a963409d5fbfec4879c22a6ef9f3f (patch) | |
tree | d9b7acc75eae4c216aeb39a3be6f3418fe3c894d /src/core/core.cpp | |
parent | Merge pull request #11377 from BenjaminHalko/reverse-slider-input (diff) | |
download | yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.gz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.bz2 yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.lz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.xz yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.tar.zst yuzu-b7523d6fa77a963409d5fbfec4879c22a6ef9f3f.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 2f67e60a9..e95ae80da 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -273,7 +273,8 @@ struct System::Impl { time_manager.Initialize(); is_powered_on = true; - exit_lock = false; + exit_locked = false; + exit_requested = false; microprofile_cpu[0] = MICROPROFILE_TOKEN(ARM_CPU0); microprofile_cpu[1] = MICROPROFILE_TOKEN(ARM_CPU1); @@ -398,7 +399,8 @@ struct System::Impl { } is_powered_on = false; - exit_lock = false; + exit_locked = false; + exit_requested = false; if (gpu_core != nullptr) { gpu_core->NotifyShutdown(); @@ -507,7 +509,8 @@ struct System::Impl { CpuManager cpu_manager; std::atomic_bool is_powered_on{}; - bool exit_lock = false; + bool exit_locked = false; + bool exit_requested = false; bool nvdec_active{}; @@ -943,12 +946,20 @@ const Service::Time::TimeManager& System::GetTimeManager() const { return impl->time_manager; } -void System::SetExitLock(bool locked) { - impl->exit_lock = locked; +void System::SetExitLocked(bool locked) { + impl->exit_locked = locked; } -bool System::GetExitLock() const { - return impl->exit_lock; +bool System::GetExitLocked() const { + return impl->exit_locked; +} + +void System::SetExitRequested(bool requested) { + impl->exit_requested = requested; +} + +bool System::GetExitRequested() const { + return impl->exit_requested; } void System::SetApplicationProcessBuildID(const CurrentBuildProcessID& id) { |