summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/applets/applet_mii_edit_types.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-03-17 08:52:48 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-03-22 04:57:31 +0100
commit7c44a4ede39a5e9cc3cb6484a874bede2559a731 (patch)
tree66fae26e82c9e24cb471ea58fcaf3b0dc8432276 /src/core/hle/service/am/applets/applet_mii_edit_types.h
parentservice: Move mii enums and structs into its own file (diff)
downloadyuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.tar
yuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.tar.gz
yuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.tar.bz2
yuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.tar.lz
yuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.tar.xz
yuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.tar.zst
yuzu-7c44a4ede39a5e9cc3cb6484a874bede2559a731.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/am/applets/applet_mii_edit_types.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/core/hle/service/am/applets/applet_mii_edit_types.h b/src/core/hle/service/am/applets/applet_mii_edit_types.h
new file mode 100644
index 000000000..7b8b35254
--- /dev/null
+++ b/src/core/hle/service/am/applets/applet_mii_edit_types.h
@@ -0,0 +1,62 @@
+// Copyright 2022 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <array>
+
+#include "common/common_funcs.h"
+#include "common/common_types.h"
+#include "core/hle/service/mii/types.h"
+
+namespace Service::AM::Applets {
+
+// This is nn::mii::AppletMode
+enum class MiiAppletMode : u32 {
+ ShowMiiEdit = 0,
+ AppendMii = 1,
+ AppendMiiImage = 2,
+ UpdateMiiImage = 3,
+ CreateMii = 4,
+ EditMii = 5,
+};
+
+struct MiiCharInfo {
+ Service::Mii::MiiInfo mii_data{};
+ INSERT_PADDING_BYTES(0x28);
+};
+static_assert(sizeof(MiiCharInfo) == 0x80, "MiiCharInfo has incorrect size.");
+
+// This is nn::mii::AppletInput
+struct MiiAppletInput {
+ s32 version{};
+ MiiAppletMode applet_mode{};
+ u32 special_mii_key_code{};
+ union {
+ std::array<Common::UUID, 8> valid_uuid;
+ MiiCharInfo mii_char_info;
+ };
+ Common::UUID used_uuid;
+ INSERT_PADDING_BYTES(0x64);
+};
+static_assert(sizeof(MiiAppletInput) == 0x100, "MiiAppletInput has incorrect size.");
+
+// This is nn::mii::AppletOutput
+struct MiiAppletOutput {
+ u32 result{};
+ s32 index{};
+ INSERT_PADDING_BYTES(0x18);
+};
+static_assert(sizeof(MiiAppletOutput) == 0x20, "MiiAppletOutput has incorrect size.");
+
+// This is nn::mii::AppletOutputForCharInfoEditing
+struct AppletOutputForCharInfoEditing {
+ u32 result{};
+ Service::Mii::MiiInfo mii_data{};
+ INSERT_PADDING_BYTES(0x24);
+};
+static_assert(sizeof(AppletOutputForCharInfoEditing) == 0x80,
+ "AppletOutputForCharInfoEditing has incorrect size.");
+
+} // namespace Service::AM::Applets