summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applets/applet_cabinet.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-02 01:24:46 +0200
committerGitHub <noreply@github.com>2023-10-02 01:24:46 +0200
commit99e2568304cc008213b30677eade0522b49f8a92 (patch)
tree222e308f4b1a3edb95db47df9ab11a3ee051e453 /src/core/hle/service/am/applets/applet_cabinet.h
parentMerge pull request #11646 from FernandoS27/stop-ignoring-your-mental-health (diff)
parentservice: nfc: Implement SetRegisterInfoPrivate mii support (diff)
downloadyuzu-99e2568304cc008213b30677eade0522b49f8a92.tar
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.gz
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.bz2
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.lz
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.xz
yuzu-99e2568304cc008213b30677eade0522b49f8a92.tar.zst
yuzu-99e2568304cc008213b30677eade0522b49f8a92.zip
Diffstat (limited to 'src/core/hle/service/am/applets/applet_cabinet.h')
-rw-r--r--src/core/hle/service/am/applets/applet_cabinet.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/applet_cabinet.h b/src/core/hle/service/am/applets/applet_cabinet.h
index b56427021..f498796f7 100644
--- a/src/core/hle/service/am/applets/applet_cabinet.h
+++ b/src/core/hle/service/am/applets/applet_cabinet.h
@@ -29,6 +29,15 @@ enum class CabinetAppletVersion : u32 {
Version1 = 0x1,
};
+enum class CabinetFlags : u8 {
+ None = 0,
+ DeviceHandle = 1 << 0,
+ TagInfo = 1 << 1,
+ RegisterInfo = 1 << 2,
+ All = DeviceHandle | TagInfo | RegisterInfo,
+};
+DECLARE_ENUM_FLAG_OPERATORS(CabinetFlags)
+
enum class CabinetResult : u8 {
Cancel = 0,
TagInfo = 1 << 1,
@@ -51,7 +60,7 @@ static_assert(sizeof(AmiiboSettingsStartParam) == 0x30,
struct StartParamForAmiiboSettings {
u8 param_1;
Service::NFP::CabinetMode applet_mode;
- u8 flags;
+ CabinetFlags flags;
u8 amiibo_settings_1;
u64 device_handle;
Service::NFP::TagInfo tag_info;