diff options
author | bunnei <bunneidev@gmail.com> | 2021-04-17 08:03:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 08:03:23 +0200 |
commit | d5c1f3929c3348691bda405dd2a4248773d02f2d (patch) | |
tree | 271ec5aceff2eab8214a06db0f33b0afac217f86 /src/core/hle/service/am/applets/applets.cpp | |
parent | Merge pull request #6201 from bunnei/remove-bintray (diff) | |
parent | applets/swkbd: Implement the Qt Software Keyboard frontend (diff) | |
download | yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.gz yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.bz2 yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.lz yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.xz yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.tar.zst yuzu-d5c1f3929c3348691bda405dd2a4248773d02f2d.zip |
Diffstat (limited to 'src/core/hle/service/am/applets/applets.cpp')
-rw-r--r-- | src/core/hle/service/am/applets/applets.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/service/am/applets/applets.cpp b/src/core/hle/service/am/applets/applets.cpp index e2f3b7563..5ddad851a 100644 --- a/src/core/hle/service/am/applets/applets.cpp +++ b/src/core/hle/service/am/applets/applets.cpp @@ -241,31 +241,31 @@ void AppletManager::ClearAll() { frontend = {}; } -std::shared_ptr<Applet> AppletManager::GetApplet(AppletId id) const { +std::shared_ptr<Applet> AppletManager::GetApplet(AppletId id, LibraryAppletMode mode) const { switch (id) { case AppletId::Auth: - return std::make_shared<Auth>(system, *frontend.parental_controls); + return std::make_shared<Auth>(system, mode, *frontend.parental_controls); case AppletId::Controller: - return std::make_shared<Controller>(system, *frontend.controller); + return std::make_shared<Controller>(system, mode, *frontend.controller); case AppletId::Error: - return std::make_shared<Error>(system, *frontend.error); + return std::make_shared<Error>(system, mode, *frontend.error); case AppletId::ProfileSelect: - return std::make_shared<ProfileSelect>(system, *frontend.profile_select); + return std::make_shared<ProfileSelect>(system, mode, *frontend.profile_select); case AppletId::SoftwareKeyboard: - return std::make_shared<SoftwareKeyboard>(system, *frontend.software_keyboard); + return std::make_shared<SoftwareKeyboard>(system, mode, *frontend.software_keyboard); case AppletId::Web: case AppletId::Shop: case AppletId::OfflineWeb: case AppletId::LoginShare: case AppletId::WebAuth: - return std::make_shared<WebBrowser>(system, *frontend.web_browser); + return std::make_shared<WebBrowser>(system, mode, *frontend.web_browser); case AppletId::PhotoViewer: - return std::make_shared<PhotoViewer>(system, *frontend.photo_viewer); + return std::make_shared<PhotoViewer>(system, mode, *frontend.photo_viewer); default: UNIMPLEMENTED_MSG( "No backend implementation exists for applet_id={:02X}! Falling back to stub applet.", static_cast<u8>(id)); - return std::make_shared<StubApplet>(system, id); + return std::make_shared<StubApplet>(system, id, mode); } } |