summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-12-12 11:06:37 -0500
committerGravatar GitHub2023-12-12 11:06:37 -0500
commit15bebf1695246c85852835b0fae58d795626dc39 (patch)
tree03de654621e65cb185b2a2e3511f71b933b005ef /src/core/core.cpp
parentMerge pull request #12333 from german77/aruid_free (diff)
parentcore: Use single instance of profile manager (diff)
downloadyuzu-15bebf1695246c85852835b0fae58d795626dc39.tar.gz
yuzu-15bebf1695246c85852835b0fae58d795626dc39.tar.xz
yuzu-15bebf1695246c85852835b0fae58d795626dc39.zip
Merge pull request #12328 from german77/profile_manager
core: Use single instance of profile manager
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 229cb879c..b14f74976 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -36,6 +36,7 @@
36#include "core/hle/kernel/k_scheduler.h" 36#include "core/hle/kernel/k_scheduler.h"
37#include "core/hle/kernel/kernel.h" 37#include "core/hle/kernel/kernel.h"
38#include "core/hle/kernel/physical_core.h" 38#include "core/hle/kernel/physical_core.h"
39#include "core/hle/service/acc/profile_manager.h"
39#include "core/hle/service/am/applets/applets.h" 40#include "core/hle/service/am/applets/applets.h"
40#include "core/hle/service/apm/apm_controller.h" 41#include "core/hle/service/apm/apm_controller.h"
41#include "core/hle/service/filesystem/filesystem.h" 42#include "core/hle/service/filesystem/filesystem.h"
@@ -130,8 +131,8 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs,
130struct System::Impl { 131struct System::Impl {
131 explicit Impl(System& system) 132 explicit Impl(System& system)
132 : kernel{system}, fs_controller{system}, memory{system}, hid_core{}, room_network{}, 133 : kernel{system}, fs_controller{system}, memory{system}, hid_core{}, room_network{},
133 cpu_manager{system}, reporter{system}, applet_manager{system}, time_manager{system}, 134 cpu_manager{system}, reporter{system}, applet_manager{system}, profile_manager{},
134 gpu_dirty_memory_write_manager{} { 135 time_manager{system}, gpu_dirty_memory_write_manager{} {
135 memory.SetGPUDirtyManagers(gpu_dirty_memory_write_manager); 136 memory.SetGPUDirtyManagers(gpu_dirty_memory_write_manager);
136 } 137 }
137 138
@@ -532,6 +533,7 @@ struct System::Impl {
532 533
533 /// Service State 534 /// Service State
534 Service::Glue::ARPManager arp_manager; 535 Service::Glue::ARPManager arp_manager;
536 Service::Account::ProfileManager profile_manager;
535 Service::Time::TimeManager time_manager; 537 Service::Time::TimeManager time_manager;
536 538
537 /// Service manager 539 /// Service manager
@@ -921,6 +923,14 @@ const Service::APM::Controller& System::GetAPMController() const {
921 return impl->apm_controller; 923 return impl->apm_controller;
922} 924}
923 925
926Service::Account::ProfileManager& System::GetProfileManager() {
927 return impl->profile_manager;
928}
929
930const Service::Account::ProfileManager& System::GetProfileManager() const {
931 return impl->profile_manager;
932}
933
924Service::Time::TimeManager& System::GetTimeManager() { 934Service::Time::TimeManager& System::GetTimeManager() {
925 return impl->time_manager; 935 return impl->time_manager;
926} 936}