mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-08 17:19:15 +00:00
HW: Move g_SRAM to System.
This commit is contained in:
parent
0a517ebdbd
commit
c21f2512c8
7 changed files with 41 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue