summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2022-07-02 14:49:51 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2022-10-09 00:00:01 -0500
commitbc360584a3a8a8902f50642496b2d1287e5088ac (patch)
tree335aac640b71462ecbe3e7ba672be08c9d0255f3 /Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp
parent6cf99195c645f54d54c72322ad0312a0e56bc985 (diff)
VideoCommon: add structures to graphics mods to allow for future adding or removing parameters with less code overhead
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp
index e6f7d6b659..e131b4ee1e 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/Actions/PrintAction.cpp
@@ -5,27 +5,32 @@
#include "Common/Logging/Log.h"
-void PrintAction::OnDrawStarted(bool*)
+void PrintAction::OnDrawStarted(GraphicsModActionData::DrawStarted*)
{
INFO_LOG_FMT(VIDEO, "OnDrawStarted Called");
}
-void PrintAction::OnEFB(bool*, u32 texture_width, u32 texture_height, u32* scaled_width,
- u32* scaled_height)
+void PrintAction::OnEFB(GraphicsModActionData::EFB* efb)
{
- if (!scaled_width || !scaled_height)
+ if (!efb) [[unlikely]]
return;
- INFO_LOG_FMT(VIDEO, "OnEFB Called. Original [{}, {}], Scaled [{}, {}]", texture_width,
- texture_height, *scaled_width, *scaled_height);
+ if (!efb->scaled_width) [[unlikely]]
+ return;
+
+ if (!efb->scaled_height) [[unlikely]]
+ return;
+
+ INFO_LOG_FMT(VIDEO, "OnEFB Called. Original [{}, {}], Scaled [{}, {}]", efb->texture_width,
+ efb->texture_height, *efb->scaled_width, *efb->scaled_height);
}
-void PrintAction::OnProjection(Common::Matrix44*)
+void PrintAction::OnProjection(GraphicsModActionData::Projection*)
{
INFO_LOG_FMT(VIDEO, "OnProjection Called");
}
-void PrintAction::OnProjectionAndTexture(Common::Matrix44*)
+void PrintAction::OnProjectionAndTexture(GraphicsModActionData::Projection*)
{
INFO_LOG_FMT(VIDEO, "OnProjectionAndTexture Called");
}