diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-06-05 18:10:23 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-06-25 02:05:11 +0200 |
commit | 9d2d349d7b0d30784b13260844deec500b5a50c8 (patch) | |
tree | 3d6124ea41ef9651c1e68e0dc1d7f400dd29bb87 /src/core/hle/service/am/applets/general_backend.h | |
parent | Merge pull request #2603 from WamWooWam/master (diff) | |
download | yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.tar yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.tar.gz yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.tar.bz2 yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.tar.lz yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.tar.xz yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.tar.zst yuzu-9d2d349d7b0d30784b13260844deec500b5a50c8.zip |
Diffstat (limited to 'src/core/hle/service/am/applets/general_backend.h')
-rw-r--r-- | src/core/hle/service/am/applets/general_backend.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applets/general_backend.h b/src/core/hle/service/am/applets/general_backend.h index fb68a2543..0da252044 100644 --- a/src/core/hle/service/am/applets/general_backend.h +++ b/src/core/hle/service/am/applets/general_backend.h @@ -8,6 +8,36 @@ namespace Service::AM::Applets { +enum class AuthAppletType : u32 { + ShowParentalAuthentication, + RegisterParentalPasscode, + ChangeParentalPasscode, +}; + +class Auth final : public Applet { +public: + explicit Auth(Core::Frontend::ParentalControlsApplet& frontend); + ~Auth() override; + + void Initialize() override; + bool TransactionComplete() const override; + ResultCode GetStatus() const override; + void ExecuteInteractive() override; + void Execute() override; + + void AuthFinished(bool successful = true); + +private: + Core::Frontend::ParentalControlsApplet& frontend; + bool complete = false; + bool successful = false; + + AuthAppletType type = AuthAppletType::ShowParentalAuthentication; + u8 arg0 = 0; + u8 arg1 = 0; + u8 arg2 = 0; +}; + enum class PhotoViewerAppletMode : u8 { CurrentApp = 0, AllApps = 1, |