summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2017-06-26 14:49:32 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2017-11-17 22:11:29 -0600
commit5a372020ea989abb5dfaf10040d6e3fbd90c8001 (patch)
treebf42904edc9a20d57e0c73fc88508e57a71fb6bf /Source/Core/VideoCommon/BPStructs.cpp
parent2cd9565b187806490a962f4d78e975e6fb9dc027 (diff)
FifoPlayer: Generate fake VideoInterface updates
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp7
1 files changed, 7 insertions, 0 deletions
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.