FifoRecorder: Move instance to System.

This commit is contained in:
Admiral H. Curtiss 2024-01-12 13:35:47 +01:00
commit 637fd49909
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
10 changed files with 60 additions and 38 deletions

View file

@ -9,6 +9,7 @@
#include "Core/Config/MainSettings.h"
#include "Core/CoreTiming.h"
#include "Core/FifoPlayer/FifoPlayer.h"
#include "Core/FifoPlayer/FifoRecorder.h"
#include "Core/HW/AudioInterface.h"
#include "Core/HW/CPU.h"
#include "Core/HW/DSP.h"
@ -51,7 +52,7 @@ struct System::Impl
m_mmu(system, m_memory, m_power_pc), m_processor_interface(system),
m_serial_interface(system), m_system_timers(system), m_video_interface(system),
m_interpreter(system, m_power_pc.GetPPCState(), m_mmu), m_jit_interface(system),
m_fifo_player(system)
m_fifo_player(system), m_fifo_recorder(system)
{
}
@ -91,6 +92,7 @@ struct System::Impl
JitInterface m_jit_interface;
VideoCommon::CustomAssetLoader m_custom_asset_loader;
FifoPlayer m_fifo_player;
FifoRecorder m_fifo_recorder;
};
System::System() : m_impl{std::make_unique<Impl>(*this)}
@ -186,6 +188,11 @@ FifoPlayer& System::GetFifoPlayer() const
return m_impl->m_fifo_player;
}
FifoRecorder& System::GetFifoRecorder() const
{
return m_impl->m_fifo_recorder;
}
GeometryShaderManager& System::GetGeometryShaderManager() const
{
return m_impl->m_geometry_shader_manager;