FifoRecorder: Move instance to System.

This commit is contained in:
Admiral H. Curtiss
2024-01-12 13:35:47 +01:00
parent 6725c25600
commit 637fd49909
10 changed files with 60 additions and 38 deletions

View File

@ -1363,7 +1363,8 @@ void MainWindow::ShowFIFOPlayer()
{
if (!m_fifo_window)
{
m_fifo_window = new FIFOPlayerWindow(Core::System::GetInstance().GetFifoPlayer());
m_fifo_window = new FIFOPlayerWindow(Core::System::GetInstance().GetFifoPlayer(),
Core::System::GetInstance().GetFifoRecorder());
connect(m_fifo_window, &FIFOPlayerWindow::LoadFIFORequested, this,
[this](const QString& path) { StartGame(path, ScanForSecondDisc::No); });
}