summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2019-07-11 00:53:55 -0400
committerGravatar Lioncash2019-09-04 20:38:43 -0400
commitd1abe8e92afd6d03324af5733660aca2a77f134b (patch)
treeb7808fa1ae513e46f03ac878c27d9a2455cd1e9f /src/core/core.cpp
parentMerge pull request #2830 from FearlessTobi/port-4911 (diff)
downloadyuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.gz
yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.tar.xz
yuzu-d1abe8e92afd6d03324af5733660aca2a77f134b.zip
service/am: Remove usages of global system accessors
Avoids the use of global accessors, removing the reliance on global state. This also makes dependencies explicit in the interface, as opposed to being hidden
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 20d64f3b0..3d0978cbf 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -104,7 +104,8 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs,
104 return vfs->OpenFile(path, FileSys::Mode::Read); 104 return vfs->OpenFile(path, FileSys::Mode::Read);
105} 105}
106struct System::Impl { 106struct System::Impl {
107 explicit Impl(System& system) : kernel{system}, cpu_core_manager{system}, reporter{system} {} 107 explicit Impl(System& system)
108 : kernel{system}, cpu_core_manager{system}, applet_manager{system}, reporter{system} {}
108 109
109 Cpu& CurrentCpuCore() { 110 Cpu& CurrentCpuCore() {
110 return cpu_core_manager.GetCurrentCore(); 111 return cpu_core_manager.GetCurrentCore();