From 5a372020ea989abb5dfaf10040d6e3fbd90c8001 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Mon, 26 Jun 2017 14:49:32 -0500 Subject: FifoPlayer: Generate fake VideoInterface updates --- Source/Core/VideoCommon/BPStructs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/VideoCommon/BPStructs.cpp') diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index 977cc46b3e..e721831481 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -12,8 +12,10 @@ #include "Common/StringUtil.h" #include "Common/Thread.h" #include "Core/ConfigManager.h" +#include "Core/FifoPlayer/FifoPlayer.h" #include "Core/FifoPlayer/FifoRecorder.h" #include "Core/HW/Memmap.h" +#include "Core/HW/VideoInterface.h" #include "VideoCommon/BPFunctions.h" #include "VideoCommon/BPMemory.h" @@ -263,6 +265,11 @@ static void BPWritten(const BPCmd& bp) // This stays in to signal end of a "frame" g_renderer->RenderToXFB(destAddr, srcRect, destStride, height, s_gammaLUT[PE_copy.gamma]); + + if (FifoPlayer::GetInstance().IsRunningWithFakeVideoInterfaceUpdates()) + { + VideoInterface::FakeVIUpdate(destAddr, srcRect.GetWidth(), height); + } } // Clear the rectangular region after copying it. -- cgit v1.2.3