Эх сурвалжийг харах

applets: Add accessor for AppletFrontendSet
Allows other services to call applets without using LLE.

Zach Hilman 7 жил өмнө
parent
commit
943662dc3c

+ 4 - 0
src/core/hle/service/am/applets/applets.cpp

@@ -157,6 +157,10 @@ AppletManager::AppletManager(Core::System& system_) : system{system_} {}
 
 
 AppletManager::~AppletManager() = default;
 AppletManager::~AppletManager() = default;
 
 
+const AppletFrontendSet& AppletManager::GetAppletFrontendSet() const {
+    return frontend;
+}
+
 void AppletManager::SetAppletFrontendSet(AppletFrontendSet set) {
 void AppletManager::SetAppletFrontendSet(AppletFrontendSet set) {
     if (set.parental_controls != nullptr)
     if (set.parental_controls != nullptr)
         frontend.parental_controls = std::move(set.parental_controls);
         frontend.parental_controls = std::move(set.parental_controls);

+ 2 - 0
src/core/hle/service/am/applets/applets.h

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