summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar german772023-04-09 12:44:27 -0600
committerGravatar bunnei2023-06-03 00:05:50 -0700
commitf9974f7ef380009e3d17f65bd1dccf28176433a6 (patch)
tree0e550688c0dfabb36ca6e5af9ab169d473db3d51 /src
parentandroid: Remove unsafe null check (diff)
downloadyuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.gz
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.xz
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.zip
android: Initialize account manager
Diffstat (limited to 'src')
-rw-r--r--src/android/app/src/main/jni/native.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index a170b57aa..55736bce2 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -38,6 +38,7 @@
38#include "core/frontend/applets/software_keyboard.h" 38#include "core/frontend/applets/software_keyboard.h"
39#include "core/frontend/applets/web_browser.h" 39#include "core/frontend/applets/web_browser.h"
40#include "core/hid/hid_core.h" 40#include "core/hid/hid_core.h"
41#include "core/hle/service/acc/profile_manager.h"
41#include "core/hle/service/am/applet_ae.h" 42#include "core/hle/service/am/applet_ae.h"
42#include "core/hle/service/am/applet_oe.h" 43#include "core/hle/service/am/applet_oe.h"
43#include "core/hle/service/am/applets/applets.h" 44#include "core/hle/service/am/applets/applets.h"
@@ -169,6 +170,9 @@ public:
169 }); 170 });
170 m_system.GetFileSystemController().CreateFactories(*m_system.GetFilesystem()); 171 m_system.GetFileSystemController().CreateFactories(*m_system.GetFilesystem());
171 172
173 // Initialize account manager
174 m_profile_manager = std::make_unique<Service::Account::ProfileManager>();
175
172 // Load the ROM. 176 // Load the ROM.
173 m_load_result = m_system.Load(EmulationSession::GetInstance().Window(), filepath); 177 m_load_result = m_system.Load(EmulationSession::GetInstance().Window(), filepath);
174 if (m_load_result != Core::SystemResultStatus::Success) { 178 if (m_load_result != Core::SystemResultStatus::Success) {
@@ -310,6 +314,7 @@ private:
310 Core::SystemResultStatus m_load_result{Core::SystemResultStatus::ErrorNotInitialized}; 314 Core::SystemResultStatus m_load_result{Core::SystemResultStatus::ErrorNotInitialized};
311 bool m_is_running{}; 315 bool m_is_running{};
312 SoftwareKeyboard::AndroidKeyboard* m_software_keyboard{}; 316 SoftwareKeyboard::AndroidKeyboard* m_software_keyboard{};
317 std::unique_ptr<Service::Account::ProfileManager> m_profile_manager;
313 318
314 // GPU driver parameters 319 // GPU driver parameters
315 std::shared_ptr<Common::DynamicLibrary> m_vulkan_library; 320 std::shared_ptr<Common::DynamicLibrary> m_vulkan_library;