diff options
author | Lioncash <mathew1800@gmail.com> | 2019-07-11 00:53:55 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-09-04 20:38:43 -0400 |
commit | d1abe8e92afd6d03324af5733660aca2a77f134b (patch) | |
tree | b7808fa1ae513e46f03ac878c27d9a2455cd1e9f /src/core/core.cpp | |
parent | a956d0b0eb77b92278f1ed0e421f4dd0d702033d (diff) |
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.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 20d64f3b07..3d0978cbf8 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -104,7 +104,8 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, return vfs->OpenFile(path, FileSys::Mode::Read); } struct System::Impl { - explicit Impl(System& system) : kernel{system}, cpu_core_manager{system}, reporter{system} {} + explicit Impl(System& system) + : kernel{system}, cpu_core_manager{system}, applet_manager{system}, reporter{system} {} Cpu& CurrentCpuCore() { return cpu_core_manager.GetCurrentCore(); |