Browse Source

applets: Add accessor for AppletFrontendSet

Allows other services to call applets without using LLE.
pull/15/merge
Zach Hilman 7 years ago
parent
commit
943662dc3c
  1. 4
      src/core/hle/service/am/applets/applets.cpp
  2. 2
      src/core/hle/service/am/applets/applets.h

4
src/core/hle/service/am/applets/applets.cpp

@ -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);

2
src/core/hle/service/am/applets/applets.h

@ -190,6 +190,8 @@ public:
explicit AppletManager(Core::System& system_);
~AppletManager();
const AppletFrontendSet& GetAppletFrontendSet() const;
void SetAppletFrontendSet(AppletFrontendSet set);
void SetDefaultAppletFrontendSet();
void SetDefaultAppletsIfMissing();

Loading…
Cancel
Save