From 6941d2e7e67d68312278a934e6c47abc88074077 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 27 Nov 2022 13:50:50 +0100 Subject: VideoCommon/CommandProcessor: Refactor to class, move to Core::System. --- Source/Core/VideoCommon/VideoState.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VideoState.cpp') 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 #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); -- cgit v1.2.3