Memory: create MemorySystem class

This commit is contained in:
Weiyi Wang 2018-11-20 22:38:47 -05:00
parent ab0dba6a8b
commit 6992f76acf
3 changed files with 27 additions and 0 deletions

View file

@ -16,6 +16,10 @@
class EmuWindow;
class ARM_Interface;
namespace Memory {
class MemorySystem;
}
namespace AudioCore {
class DspInterface;
}
@ -188,6 +192,12 @@ public:
/// Gets a const reference to the timing system
const Timing& CoreTiming() const;
/// Gets a reference to the memory system
Memory::MemorySystem& Memory();
/// Gets a const reference to the memory system
const Memory::MemorySystem& Memory() const;
/// Gets a reference to the cheat engine
Cheats::CheatEngine& CheatEngine();
@ -236,6 +246,9 @@ private:
/// AppLoader used to load the current executing application
std::unique_ptr<Loader::AppLoader> app_loader;
/// Memory system
std::unique_ptr<Memory::MemorySystem> memory;
/// ARM11 CPU core
std::unique_ptr<ARM_Interface> cpu_core;