summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applets/general_backend.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-02-06 08:31:13 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-04-15 07:53:16 +0200
commitd1e40dd24427582b0329e6470c21a4e774afb400 (patch)
treeaccbd696faf4680526de90da9970512cd976ee2c /src/core/hle/service/am/applets/general_backend.h
parentapplets: Remove the previous software keyboard applet implementation (diff)
downloadyuzu-d1e40dd24427582b0329e6470c21a4e774afb400.tar
yuzu-d1e40dd24427582b0329e6470c21a4e774afb400.tar.gz
yuzu-d1e40dd24427582b0329e6470c21a4e774afb400.tar.bz2
yuzu-d1e40dd24427582b0329e6470c21a4e774afb400.tar.lz
yuzu-d1e40dd24427582b0329e6470c21a4e774afb400.tar.xz
yuzu-d1e40dd24427582b0329e6470c21a4e774afb400.tar.zst
yuzu-d1e40dd24427582b0329e6470c21a4e774afb400.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/applets/general_backend.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/hle/service/am/applets/general_backend.h b/src/core/hle/service/am/applets/general_backend.h
index ba76ae3d3..d9e6d4384 100644
--- a/src/core/hle/service/am/applets/general_backend.h
+++ b/src/core/hle/service/am/applets/general_backend.h
@@ -20,7 +20,8 @@ enum class AuthAppletType : u32 {
class Auth final : public Applet {
public:
- explicit Auth(Core::System& system_, Core::Frontend::ParentalControlsApplet& frontend_);
+ explicit Auth(Core::System& system_, LibraryAppletMode applet_mode_,
+ Core::Frontend::ParentalControlsApplet& frontend_);
~Auth() override;
void Initialize() override;
@@ -32,6 +33,7 @@ public:
void AuthFinished(bool is_successful = true);
private:
+ LibraryAppletMode applet_mode;
Core::Frontend::ParentalControlsApplet& frontend;
Core::System& system;
bool complete = false;
@@ -50,7 +52,8 @@ enum class PhotoViewerAppletMode : u8 {
class PhotoViewer final : public Applet {
public:
- explicit PhotoViewer(Core::System& system_, const Core::Frontend::PhotoViewerApplet& frontend_);
+ explicit PhotoViewer(Core::System& system_, LibraryAppletMode applet_mode_,
+ const Core::Frontend::PhotoViewerApplet& frontend_);
~PhotoViewer() override;
void Initialize() override;
@@ -62,6 +65,7 @@ public:
void ViewFinished();
private:
+ LibraryAppletMode applet_mode;
const Core::Frontend::PhotoViewerApplet& frontend;
bool complete = false;
PhotoViewerAppletMode mode = PhotoViewerAppletMode::CurrentApp;
@@ -70,7 +74,7 @@ private:
class StubApplet final : public Applet {
public:
- explicit StubApplet(Core::System& system_, AppletId id_);
+ explicit StubApplet(Core::System& system_, AppletId id_, LibraryAppletMode applet_mode_);
~StubApplet() override;
void Initialize() override;
@@ -82,6 +86,7 @@ public:
private:
AppletId id;
+ LibraryAppletMode applet_mode;
Core::System& system;
};