Memory: create MemorySystem class
This commit is contained in:
@ -172,6 +172,8 @@ void System::Reschedule() {
|
||||
System::ResultStatus System::Init(EmuWindow& emu_window, u32 system_mode) {
|
||||
LOG_DEBUG(HW_Memory, "initialized OK");
|
||||
|
||||
memory = std::make_unique<Memory::MemorySystem>();
|
||||
|
||||
timing = std::make_unique<Timing>();
|
||||
|
||||
kernel = std::make_unique<Kernel::KernelSystem>(system_mode);
|
||||
@ -250,6 +252,14 @@ const Timing& System::CoreTiming() const {
|
||||
return *timing;
|
||||
}
|
||||
|
||||
Memory::MemorySystem& System::Memory() {
|
||||
return *memory;
|
||||
}
|
||||
|
||||
const Memory::MemorySystem& System::Memory() const {
|
||||
return *memory;
|
||||
}
|
||||
|
||||
Cheats::CheatEngine& System::CheatEngine() {
|
||||
return *cheat_engine;
|
||||
}
|
||||
|
Reference in New Issue
Block a user