summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-04-09 20:44:27 +0200
committerbunnei <bunneidev@gmail.com>2023-06-03 09:05:50 +0200
commitf9974f7ef380009e3d17f65bd1dccf28176433a6 (patch)
tree0e550688c0dfabb36ca6e5af9ab169d473db3d51
parentandroid: Remove unsafe null check (diff)
downloadyuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.gz
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.bz2
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.lz
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.xz
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.tar.zst
yuzu-f9974f7ef380009e3d17f65bd1dccf28176433a6.zip
-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 @@
#include "core/frontend/applets/software_keyboard.h"
#include "core/frontend/applets/web_browser.h"
#include "core/hid/hid_core.h"
+#include "core/hle/service/acc/profile_manager.h"
#include "core/hle/service/am/applet_ae.h"
#include "core/hle/service/am/applet_oe.h"
#include "core/hle/service/am/applets/applets.h"
@@ -169,6 +170,9 @@ public:
});
m_system.GetFileSystemController().CreateFactories(*m_system.GetFilesystem());
+ // Initialize account manager
+ m_profile_manager = std::make_unique<Service::Account::ProfileManager>();
+
// Load the ROM.
m_load_result = m_system.Load(EmulationSession::GetInstance().Window(), filepath);
if (m_load_result != Core::SystemResultStatus::Success) {
@@ -310,6 +314,7 @@ private:
Core::SystemResultStatus m_load_result{Core::SystemResultStatus::ErrorNotInitialized};
bool m_is_running{};
SoftwareKeyboard::AndroidKeyboard* m_software_keyboard{};
+ std::unique_ptr<Service::Account::ProfileManager> m_profile_manager;
// GPU driver parameters
std::shared_ptr<Common::DynamicLibrary> m_vulkan_library;