diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2024-01-31 13:12:06 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2024-01-31 13:12:09 -0500 |
| commit | cac66317aa715a3d9fcfe39ccbe5d224ca489637 (patch) | |
| tree | 6f6d74c13e0ccf308807dee82fa0ca6ec8e93374 /Source/Core/VideoCommon/FrameDumper.cpp | |
| parent | 30fdf25f8f3a2fd217c8c39eb3abb5b55f63b510 (diff) | |
VideoCommon/Statistics: Remove global system accessor from s_after_frame_event
Instead, we make the event take a reference to the system and then pass
it in when the event is triggered.
This does introduce two other accessors, but these are much easier to
refactor out over time, and without modification to the existing event
interface.
Diffstat (limited to 'Source/Core/VideoCommon/FrameDumper.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FrameDumper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/FrameDumper.cpp b/Source/Core/VideoCommon/FrameDumper.cpp index d45d9933be..db4ef5205e 100644 --- a/Source/Core/VideoCommon/FrameDumper.cpp +++ b/Source/Core/VideoCommon/FrameDumper.cpp @@ -27,7 +27,8 @@ static bool DumpFrameToPNG(const FrameData& frame, const std::string& file_name) FrameDumper::FrameDumper() { - m_frame_end_handle = AfterFrameEvent::Register([this] { FlushFrameDump(); }, "FrameDumper"); + m_frame_end_handle = + AfterFrameEvent::Register([this](Core::System&) { FlushFrameDump(); }, "FrameDumper"); } FrameDumper::~FrameDumper() |
