summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoState.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-11-29 12:56:30 +0000
committerGitHub <noreply@github.com>2022-11-29 12:56:30 +0000
commitff830c08b605c121a565a47e42fcb47e07b77252 (patch)
tree3589daf4566edd4a6d891d3ac72d46e70a2e6209 /Source/Core/VideoCommon/VideoState.cpp
parent421af09b1eda251c56027a52d4263536826db98b (diff)
parent6941d2e7e67d68312278a934e6c47abc88074077 (diff)
Merge pull request #11307 from AdmiralCurtiss/globals-command-processor
VideoCommon/CommandProcessor: Refactor to class, move to Core::System.
Diffstat (limited to 'Source/Core/VideoCommon/VideoState.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoState.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoState.cpp b/Source/Core/VideoCommon/VideoState.cpp
index b56c931b48..ce76727a0b 100644
--- a/Source/Core/VideoCommon/VideoState.cpp
+++ b/Source/Core/VideoCommon/VideoState.cpp
@@ -6,6 +6,7 @@
#include <cstring>
#include "Common/ChunkFile.h"
+#include "Core/System.h"
#include "VideoCommon/BPMemory.h"
#include "VideoCommon/CPMemory.h"
#include "VideoCommon/CommandProcessor.h"
@@ -62,7 +63,9 @@ void VideoCommon_DoState(PointerWrap& p)
Fifo::DoState(p);
p.DoMarker("Fifo");
- CommandProcessor::DoState(p);
+ auto& system = Core::System::GetInstance();
+ auto& command_processor = system.GetCommandProcessor();
+ command_processor.DoState(p);
p.DoMarker("CommandProcessor");
PixelEngine::DoState(p);