diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-06-09 03:53:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 03:53:57 +0200 |
commit | 2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27 (patch) | |
tree | 0e8077362c472ee5d30ff92a036fa4d8f45d9ee6 /src/core/core.cpp | |
parent | Merge pull request #10676 from bunnei/fix-mi-5-android (diff) | |
parent | nvnflinger: allow locking framerate during video playback (diff) | |
download | yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.tar yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.tar.gz yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.tar.bz2 yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.tar.lz yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.tar.xz yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.tar.zst yuzu-2a1acbfb4d0de3f5dadea014dc7a5c2a31366f27.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 4406ae30e..7ba704f18 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -216,6 +216,14 @@ struct System::Impl { } } + void SetNVDECActive(bool is_nvdec_active) { + nvdec_active = is_nvdec_active; + } + + bool GetNVDECActive() { + return nvdec_active; + } + void InitializeDebugger(System& system, u16 port) { debugger = std::make_unique<Debugger>(system, port); } @@ -485,6 +493,8 @@ struct System::Impl { std::atomic_bool is_powered_on{}; bool exit_lock = false; + bool nvdec_active{}; + Reporter reporter; std::unique_ptr<Memory::CheatEngine> cheat_engine; std::unique_ptr<Tools::Freezer> memory_freezer; @@ -594,6 +604,14 @@ void System::UnstallApplication() { impl->UnstallApplication(); } +void System::SetNVDECActive(bool is_nvdec_active) { + impl->SetNVDECActive(is_nvdec_active); +} + +bool System::GetNVDECActive() { + return impl->GetNVDECActive(); +} + void System::InitializeDebugger() { impl->InitializeDebugger(*this, Settings::values.gdbstub_port.GetValue()); } |