summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
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 795fabc65..19b4b97c5 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -97,6 +97,8 @@ struct System::Impl {
97 virtual_filesystem = std::make_shared<FileSys::RealVfsFilesystem>(); 97 virtual_filesystem = std::make_shared<FileSys::RealVfsFilesystem>();
98 98
99 /// Create default implementations of applets if one is not provided. 99 /// Create default implementations of applets if one is not provided.
100 if (profile_selector == nullptr)
101 profile_selector = std::make_unique<Core::Frontend::DefaultProfileSelectApplet>();
100 if (software_keyboard == nullptr) 102 if (software_keyboard == nullptr)
101 software_keyboard = std::make_unique<Core::Frontend::DefaultSoftwareKeyboardApplet>(); 103 software_keyboard = std::make_unique<Core::Frontend::DefaultSoftwareKeyboardApplet>();
102 104
@@ -227,6 +229,7 @@ struct System::Impl {
227 bool is_powered_on = false; 229 bool is_powered_on = false;
228 230
229 /// Frontend applets 231 /// Frontend applets
232 std::unique_ptr<Core::Frontend::ProfileSelectApplet> profile_selector;
230 std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> software_keyboard; 233 std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> software_keyboard;
231 234
232 /// Service manager 235 /// Service manager
@@ -422,6 +425,14 @@ std::shared_ptr<FileSys::VfsFilesystem> System::GetFilesystem() const {
422 return impl->virtual_filesystem; 425 return impl->virtual_filesystem;
423} 426}
424 427
428void System::SetProfileSelector(std::unique_ptr<Core::Frontend::ProfileSelectApplet> applet) {
429 impl->profile_selector = std::move(applet);
430}
431
432const Core::Frontend::ProfileSelectApplet& System::GetProfileSelector() const {
433 return *impl->profile_selector;
434}
435
425void System::SetSoftwareKeyboard(std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> applet) { 436void System::SetSoftwareKeyboard(std::unique_ptr<Core::Frontend::SoftwareKeyboardApplet> applet) {
426 impl->software_keyboard = std::move(applet); 437 impl->software_keyboard = std::move(applet);
427} 438}