mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
applets: Add accessor for AppletFrontendSet
Allows other services to call applets without using LLE.
This commit is contained in:
parent
f2073217a4
commit
943662dc3c
2 changed files with 6 additions and 0 deletions
|
@ -157,6 +157,10 @@ AppletManager::AppletManager(Core::System& system_) : system{system_} {}
|
|||
|
||||
AppletManager::~AppletManager() = default;
|
||||
|
||||
const AppletFrontendSet& AppletManager::GetAppletFrontendSet() const {
|
||||
return frontend;
|
||||
}
|
||||
|
||||
void AppletManager::SetAppletFrontendSet(AppletFrontendSet set) {
|
||||
if (set.parental_controls != nullptr)
|
||||
frontend.parental_controls = std::move(set.parental_controls);
|
||||
|
|
|
@ -190,6 +190,8 @@ public:
|
|||
explicit AppletManager(Core::System& system_);
|
||||
~AppletManager();
|
||||
|
||||
const AppletFrontendSet& GetAppletFrontendSet() const;
|
||||
|
||||
void SetAppletFrontendSet(AppletFrontendSet set);
|
||||
void SetDefaultAppletFrontendSet();
|
||||
void SetDefaultAppletsIfMissing();
|
||||
|
|
Loading…
Reference in a new issue