Memory: create MemorySystem class
This commit is contained in:
parent
ab0dba6a8b
commit
6992f76acf
3 changed files with 27 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue