summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applets/profile_select.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-03-12 00:35:01 +0100
committerZach Hilman <zachhilman@gmail.com>2019-04-17 17:35:24 +0200
commitd273bec68fd867f047944ab9d28ac5c5c6617571 (patch)
tree92efbacd5d67fa1ed73afcdff18d8a22fce3b8d0 /src/core/hle/service/am/applets/profile_select.cpp
parentweb_browser: Make OpenPage const (diff)
downloadyuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.tar
yuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.tar.gz
yuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.tar.bz2
yuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.tar.lz
yuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.tar.xz
yuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.tar.zst
yuzu-d273bec68fd867f047944ab9d28ac5c5c6617571.zip
Diffstat (limited to 'src/core/hle/service/am/applets/profile_select.cpp')
-rw-r--r--src/core/hle/service/am/applets/profile_select.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/am/applets/profile_select.cpp b/src/core/hle/service/am/applets/profile_select.cpp
index 14e2a1fee..d113bd2eb 100644
--- a/src/core/hle/service/am/applets/profile_select.cpp
+++ b/src/core/hle/service/am/applets/profile_select.cpp
@@ -15,7 +15,9 @@ namespace Service::AM::Applets {
constexpr ResultCode ERR_USER_CANCELLED_SELECTION{ErrorModule::Account, 1};
-ProfileSelect::ProfileSelect() = default;
+ProfileSelect::ProfileSelect(const Core::Frontend::ProfileSelectApplet& frontend)
+ : frontend(frontend) {}
+
ProfileSelect::~ProfileSelect() = default;
void ProfileSelect::Initialize() {
@@ -51,8 +53,6 @@ void ProfileSelect::Execute() {
return;
}
- const auto& frontend{Core::System::GetInstance().GetProfileSelector()};
-
frontend.SelectProfile([this](std::optional<Account::UUID> uuid) { SelectionComplete(uuid); });
}