summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2023-06-04 17:07:07 -0700
committerDentomologist <dentomologist@gmail.com>2025-10-26 18:01:51 -0700
commitf497eb519e672a0dffbcd029dc937425af754ba0 (patch)
tree7bbc695425ee671d700b3eef8d8127bcb695f0de /Source/Core/VideoCommon/Fifo.cpp
parentf628a979c435723eaec40b7081634a67b575fcb8 (diff)
FifoManager: Extract RestoreState from PauseAndLock
Replace calls of FifoManager::PauseAndLock(do_lock=false) with new function RestoreState for clarity.
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index 513b655408..7e07e0bbf3 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -86,6 +86,12 @@ void FifoManager::PauseAndLock(bool do_lock, bool unpause_on_unlock)
}
}
+void FifoManager::RestoreState(const bool was_running)
+{
+ if (was_running)
+ EmulatorState(true);
+}
+
void FifoManager::Init()
{
if (!m_config_callback_id)