diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-09-29 07:01:25 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-01 19:38:30 +0200 |
commit | ae5c134ac621c07d21eb7aec66de354792cee3ca (patch) | |
tree | ff7de0a2811b2d08dfac9af7ac55e2f4c63a48ed /src/core/hle/service/am/applets/applets.cpp | |
parent | yuzu: Allow to launch cabinet applet from firmware (diff) | |
download | yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.tar yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.tar.gz yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.tar.bz2 yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.tar.lz yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.tar.xz yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.tar.zst yuzu-ae5c134ac621c07d21eb7aec66de354792cee3ca.zip |
Diffstat (limited to 'src/core/hle/service/am/applets/applets.cpp')
-rw-r--r-- | src/core/hle/service/am/applets/applets.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applets/applets.cpp b/src/core/hle/service/am/applets/applets.cpp index 10afbc2da..89d5434af 100644 --- a/src/core/hle/service/am/applets/applets.cpp +++ b/src/core/hle/service/am/applets/applets.cpp @@ -199,6 +199,14 @@ const AppletFrontendSet& AppletManager::GetAppletFrontendSet() const { return frontend; } +NFP::CabinetMode AppletManager::GetCabinetMode() const { + return cabinet_mode; +} + +AppletId AppletManager::GetCurrentAppletId() const { + return current_applet_id; +} + void AppletManager::SetAppletFrontendSet(AppletFrontendSet set) { if (set.cabinet != nullptr) { frontend.cabinet = std::move(set.cabinet); @@ -237,6 +245,14 @@ void AppletManager::SetAppletFrontendSet(AppletFrontendSet set) { } } +void AppletManager::SetCabinetMode(NFP::CabinetMode mode) { + cabinet_mode = mode; +} + +void AppletManager::SetCurrentAppletId(AppletId applet_id) { + current_applet_id = applet_id; +} + void AppletManager::SetDefaultAppletFrontendSet() { ClearAll(); SetDefaultAppletsIfMissing(); |