diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-11 05:58:18 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-11 06:18:25 +0200 |
commit | 27929d7ca2b5fffc8866941d08cda921d586c45d (patch) | |
tree | 34b87648144aeed0ceb14b51afbdfa976a2aa35e /src/core/hle/service/mii/types/char_info.h | |
parent | service: mii: Move all raw data to it's file (diff) | |
download | yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.tar yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.tar.gz yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.tar.bz2 yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.tar.lz yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.tar.xz yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.tar.zst yuzu-27929d7ca2b5fffc8866941d08cda921d586c45d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/mii/types/char_info.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/src/core/hle/service/mii/types/char_info.h b/src/core/hle/service/mii/types/char_info.h new file mode 100644 index 000000000..5741b5089 --- /dev/null +++ b/src/core/hle/service/mii/types/char_info.h @@ -0,0 +1,76 @@ +// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include "core/hle/service/mii/mii_types.h" + +namespace Service::Mii { + +// This is nn::mii::detail::CharInfoRaw +struct CharInfo { + Common::UUID create_id; + Nickname name; + u16 null_terminator; + u8 font_region; + u8 favorite_color; + u8 gender; + u8 height; + u8 build; + u8 type; + u8 region_move; + u8 faceline_type; + u8 faceline_color; + u8 faceline_wrinkle; + u8 faceline_make; + u8 hair_type; + u8 hair_color; + u8 hair_flip; + u8 eye_type; + u8 eye_color; + u8 eye_scale; + u8 eye_aspect; + u8 eye_rotate; + u8 eye_x; + u8 eye_y; + u8 eyebrow_type; + u8 eyebrow_color; + u8 eyebrow_scale; + u8 eyebrow_aspect; + u8 eyebrow_rotate; + u8 eyebrow_x; + u8 eyebrow_y; + u8 nose_type; + u8 nose_scale; + u8 nose_y; + u8 mouth_type; + u8 mouth_color; + u8 mouth_scale; + u8 mouth_aspect; + u8 mouth_y; + u8 beard_color; + u8 beard_type; + u8 mustache_type; + u8 mustache_scale; + u8 mustache_y; + u8 glasses_type; + u8 glasses_color; + u8 glasses_scale; + u8 glasses_y; + u8 mole_type; + u8 mole_scale; + u8 mole_x; + u8 mole_y; + u8 padding; +}; +static_assert(sizeof(CharInfo) == 0x58, "CharInfo has incorrect size."); +static_assert(std::has_unique_object_representations_v<CharInfo>, + "All bits of CharInfo must contribute to its value."); + +struct CharInfoElement { + CharInfo char_info{}; + Source source{}; +}; +static_assert(sizeof(CharInfoElement) == 0x5c, "CharInfoElement has incorrect size."); + +}; // namespace Service::Mii |