diff options
author | David <25727384+ogniK5377@users.noreply.github.com> | 2019-09-22 16:37:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 16:37:12 +0200 |
commit | aaec1562f8631303d1a5abb6c75f2422d6d7cf71 (patch) | |
tree | 283ac1330252c06b3a1741730ce49f4182330150 /src/core/core.cpp | |
parent | Merge pull request #2889 from FearlessTobi/adwsawdawd (diff) | |
parent | main: Use const on all variable initializations (diff) | |
download | yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.tar yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.tar.gz yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.tar.bz2 yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.tar.lz yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.tar.xz yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.tar.zst yuzu-aaec1562f8631303d1a5abb6c75f2422d6d7cf71.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 76bb2bae9..92ba42fb9 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -163,6 +163,7 @@ struct System::Impl { gpu_core = VideoCore::CreateGPU(system); is_powered_on = true; + exit_lock = false; LOG_DEBUG(Core, "Initialized OK"); @@ -249,6 +250,7 @@ struct System::Impl { perf_stats->GetMeanFrametime()); is_powered_on = false; + exit_lock = false; // Shutdown emulation session renderer.reset(); @@ -333,6 +335,7 @@ struct System::Impl { std::unique_ptr<Core::Hardware::InterruptManager> interrupt_manager; CpuCoreManager cpu_core_manager; bool is_powered_on = false; + bool exit_lock = false; std::unique_ptr<Memory::CheatEngine> cheat_engine; std::unique_ptr<Tools::Freezer> memory_freezer; @@ -629,6 +632,14 @@ const Service::APM::Controller& System::GetAPMController() const { return impl->apm_controller; } +void System::SetExitLock(bool locked) { + impl->exit_lock = locked; +} + +bool System::GetExitLock() const { + return impl->exit_lock; +} + System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) { return impl->Init(*this, emu_window); } |