diff options
author | bunnei <bunneidev@gmail.com> | 2020-04-03 04:00:41 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-04-17 06:59:29 +0200 |
commit | dc25c86556c36dd23224d88234afc9ecbf780719 (patch) | |
tree | 5dbe45bcc17ecad8675e7a4cb03dd34361f01e03 /src/core/core.cpp | |
parent | dynarmic: Enable strict alignment checks. (diff) | |
download | yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.tar yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.tar.gz yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.tar.bz2 yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.tar.lz yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.tar.xz yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.tar.zst yuzu-dc25c86556c36dd23224d88234afc9ecbf780719.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/core.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 87b147f63..4bc71c7a7 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -14,6 +14,7 @@ #include "core/core_manager.h" #include "core/core_timing.h" #include "core/cpu_manager.h" +#include "core/device_memory.h" #include "core/file_sys/bis_factory.h" #include "core/file_sys/card_image.h" #include "core/file_sys/mode.h" @@ -113,7 +114,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, } struct System::Impl { explicit Impl(System& system) - : kernel{system}, fs_controller{system}, memory{system}, + : kernel{system}, device_memory{system}, fs_controller{system}, memory{system}, cpu_manager{system}, reporter{system}, applet_manager{system} {} CoreManager& CurrentCoreManager() { @@ -337,6 +338,7 @@ struct System::Impl { Timing::CoreTiming core_timing; Kernel::KernelCore kernel; + DeviceMemory device_memory; /// RealVfsFilesystem instance FileSys::VirtualFilesystem virtual_filesystem; /// ContentProviderUnion instance @@ -472,6 +474,14 @@ Kernel::Process* System::CurrentProcess() { return impl->kernel.CurrentProcess(); } +DeviceMemory& System::GetDeviceMemory() { + return impl->device_memory; +} + +const DeviceMemory& System::GetDeviceMemory() const { + return impl->device_memory; +} + const Kernel::Process* System::CurrentProcess() const { return impl->kernel.CurrentProcess(); } |