summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-23 20:35:13 +0100
committerGitHub <noreply@github.com>2018-12-23 20:35:13 +0100
commitf95f6c7d86af9857cb737a741fc847bf2c5d8413 (patch)
treeb5c02a35cdb18b78c648bc3a6f98b87e68d2e651 /src/core/core.cpp
parentMerge pull request #1780 from DarkLordZach/controller-profiles (diff)
parentapplets: Correct event ResetTypes from OneShot to Sticky (diff)
downloadyuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.gz
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.bz2
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.lz
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.xz
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.tar.zst
yuzu-f95f6c7d86af9857cb737a741fc847bf2c5d8413.zip
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index ce7851538..fd10199ec 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -99,6 +99,8 @@ struct System::Impl {
virtual_filesystem = std::make_shared<FileSys::RealVfsFilesystem>();
/// Create default implementations of applets if one is not provided.
+ if (profile_selector == nullptr)
+ profile_selector = std::make_unique<Core::Frontend::DefaultProfileSelectApplet>();
if (software_keyboard == nullptr)
software_keyboard = std::make_unique<Core::Frontend::DefaultSoftwareKeyboardApplet>();
@@ -229,6 +231,7 @@ struct System::Impl {
bool is_powered_on = false;
/// Frontend applets
+ std::unique_ptr<Core::Frontend::ProfileSelectApplet> profile_selector;
std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> software_keyboard;
/// Service manager
@@ -424,6 +427,14 @@ std::shared_ptr<FileSys::VfsFilesystem> System::GetFilesystem() const {
return impl->virtual_filesystem;
}
+void System::SetProfileSelector(std::unique_ptr<Core::Frontend::ProfileSelectApplet> applet) {
+ impl->profile_selector = std::move(applet);
+}
+
+const Core::Frontend::ProfileSelectApplet& System::GetProfileSelector() const {
+ return *impl->profile_selector;
+}
+
void System::SetSoftwareKeyboard(std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> applet) {
impl->software_keyboard = std::move(applet);
}