sprofile: implement OpenProfileUpdateObserver

This commit is contained in:
Michael Scire 2021-09-15 23:10:11 -07:00 committed by SciresM
parent bd240b23d8
commit 75d5e2aef0
11 changed files with 396 additions and 3 deletions
libraries/libstratosphere/source/sprofile/srv

View file

@ -86,6 +86,9 @@ namespace ams::sprofile::srv {
/* Create the profile manager. */
util::ConstructAt(g_profile_manager, SaveDataInfo);
/* Process profile manager savedata. */
util::GetReference(g_profile_manager).InitializeSaveData();
/* Create the service objects. */
util::ConstructAt(g_bg_service_object, std::addressof(g_sf_memory_resource), util::GetPointer(g_profile_manager));
util::ConstructAt(g_sp_service_object, std::addressof(g_sf_memory_resource), util::GetPointer(g_profile_manager));