HW: Move g_SRAM to System.

This commit is contained in:
Admiral H. Curtiss 2022-09-14 01:11:04 +02:00
commit c21f2512c8
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
7 changed files with 41 additions and 21 deletions

View file

@ -10,6 +10,7 @@
#include "Core/HW/AudioInterface.h"
#include "Core/HW/DVD/DVDInterface.h"
#include "Core/HW/DVD/DVDThread.h"
#include "Core/HW/Sram.h"
namespace Core
{
@ -22,6 +23,7 @@ struct System::Impl
AudioInterface::AudioInterfaceState m_audio_interface_state;
DVDInterface::DVDInterfaceState m_dvd_interface_state;
DVDThread::DVDThreadState m_dvd_thread_state;
Sram m_sram;
};
System::System() : m_impl{std::make_unique<Impl>()}
@ -80,4 +82,9 @@ DVDThread::DVDThreadState& System::GetDVDThreadState() const
{
return m_impl->m_dvd_thread_state;
}
Sram& System::GetSRAM() const
{
return m_impl->m_sram;
}
} // namespace Core