mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Merge pull request #11345 from AdmiralCurtiss/globals-pe
VideoCommon/PixelEngine: Refactor to class, move to Core::System.
This commit is contained in:
@ -50,7 +50,7 @@ void MemoryManager::InitMMIO(bool is_wii)
|
||||
|
||||
auto& system = Core::System::GetInstance();
|
||||
system.GetCommandProcessor().RegisterMMIO(system, m_mmio_mapping.get(), 0x0C000000);
|
||||
PixelEngine::RegisterMMIO(m_mmio_mapping.get(), 0x0C001000);
|
||||
system.GetPixelEngine().RegisterMMIO(m_mmio_mapping.get(), 0x0C001000);
|
||||
VideoInterface::RegisterMMIO(m_mmio_mapping.get(), 0x0C002000);
|
||||
ProcessorInterface::RegisterMMIO(m_mmio_mapping.get(), 0x0C003000);
|
||||
MemoryInterface::RegisterMMIO(m_mmio_mapping.get(), 0x0C004000);
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include "Core/HW/VideoInterface.h"
|
||||
#include "VideoCommon/CommandProcessor.h"
|
||||
#include "VideoCommon/Fifo.h"
|
||||
#include "VideoCommon/PixelEngine.h"
|
||||
|
||||
namespace Core
|
||||
{
|
||||
@ -39,6 +40,7 @@ struct System::Impl
|
||||
Fifo::FifoManager m_fifo;
|
||||
Memory::MemoryManager m_memory;
|
||||
MemoryInterface::MemoryInterfaceState m_memory_interface_state;
|
||||
PixelEngine::PixelEngineManager m_pixel_engine;
|
||||
SerialInterface::SerialInterfaceState m_serial_interface_state;
|
||||
Sram m_sram;
|
||||
VideoInterface::VideoInterfaceState m_video_interface_state;
|
||||
@ -137,6 +139,11 @@ MemoryInterface::MemoryInterfaceState& System::GetMemoryInterfaceState() const
|
||||
return m_impl->m_memory_interface_state;
|
||||
}
|
||||
|
||||
PixelEngine::PixelEngineManager& System::GetPixelEngine() const
|
||||
{
|
||||
return m_impl->m_pixel_engine;
|
||||
}
|
||||
|
||||
SerialInterface::SerialInterfaceState& System::GetSerialInterfaceState() const
|
||||
{
|
||||
return m_impl->m_serial_interface_state;
|
||||
|
@ -48,6 +48,10 @@ namespace MemoryInterface
|
||||
{
|
||||
class MemoryInterfaceState;
|
||||
};
|
||||
namespace PixelEngine
|
||||
{
|
||||
class PixelEngineManager;
|
||||
};
|
||||
namespace SerialInterface
|
||||
{
|
||||
class SerialInterfaceState;
|
||||
@ -101,6 +105,7 @@ public:
|
||||
Fifo::FifoManager& GetFifo() const;
|
||||
Memory::MemoryManager& GetMemory() const;
|
||||
MemoryInterface::MemoryInterfaceState& GetMemoryInterfaceState() const;
|
||||
PixelEngine::PixelEngineManager& GetPixelEngine() const;
|
||||
SerialInterface::SerialInterfaceState& GetSerialInterfaceState() const;
|
||||
Sram& GetSRAM() const;
|
||||
VideoInterface::VideoInterfaceState& GetVideoInterfaceState() const;
|
||||
|
Reference in New Issue
Block a user