diff options
| author | 2023-06-08 01:15:51 -0400 | |
|---|---|---|
| committer | 2023-06-08 01:15:51 -0400 | |
| commit | 6c34adb1de2965a9c5800970703bb1288764026f (patch) | |
| tree | 419d795b517fa790a42ca90ce8f17bda41e85af7 /src/core/core.cpp | |
| parent | Merge pull request #10650 from qurious-pixel/android_tv (diff) | |
| download | yuzu-6c34adb1de2965a9c5800970703bb1288764026f.tar.gz yuzu-6c34adb1de2965a9c5800970703bb1288764026f.tar.xz yuzu-6c34adb1de2965a9c5800970703bb1288764026f.zip | |
nvnflinger: allow locking framerate during video playback
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 { | |||
| 216 | } | 216 | } |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void SetNVDECActive(bool is_nvdec_active) { | ||
| 220 | nvdec_active = is_nvdec_active; | ||
| 221 | } | ||
| 222 | |||
| 223 | bool GetNVDECActive() { | ||
| 224 | return nvdec_active; | ||
| 225 | } | ||
| 226 | |||
| 219 | void InitializeDebugger(System& system, u16 port) { | 227 | void InitializeDebugger(System& system, u16 port) { |
| 220 | debugger = std::make_unique<Debugger>(system, port); | 228 | debugger = std::make_unique<Debugger>(system, port); |
| 221 | } | 229 | } |
| @@ -485,6 +493,8 @@ struct System::Impl { | |||
| 485 | std::atomic_bool is_powered_on{}; | 493 | std::atomic_bool is_powered_on{}; |
| 486 | bool exit_lock = false; | 494 | bool exit_lock = false; |
| 487 | 495 | ||
| 496 | bool nvdec_active{}; | ||
| 497 | |||
| 488 | Reporter reporter; | 498 | Reporter reporter; |
| 489 | std::unique_ptr<Memory::CheatEngine> cheat_engine; | 499 | std::unique_ptr<Memory::CheatEngine> cheat_engine; |
| 490 | std::unique_ptr<Tools::Freezer> memory_freezer; | 500 | std::unique_ptr<Tools::Freezer> memory_freezer; |
| @@ -594,6 +604,14 @@ void System::UnstallApplication() { | |||
| 594 | impl->UnstallApplication(); | 604 | impl->UnstallApplication(); |
| 595 | } | 605 | } |
| 596 | 606 | ||
| 607 | void System::SetNVDECActive(bool is_nvdec_active) { | ||
| 608 | impl->SetNVDECActive(is_nvdec_active); | ||
| 609 | } | ||
| 610 | |||
| 611 | bool System::GetNVDECActive() { | ||
| 612 | return impl->GetNVDECActive(); | ||
| 613 | } | ||
| 614 | |||
| 597 | void System::InitializeDebugger() { | 615 | void System::InitializeDebugger() { |
| 598 | impl->InitializeDebugger(*this, Settings::values.gdbstub_port.GetValue()); | 616 | impl->InitializeDebugger(*this, Settings::values.gdbstub_port.GetValue()); |
| 599 | } | 617 | } |