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/mii_manager.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/mii_manager.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/core/hle/service/mii/mii_manager.h b/src/core/hle/service/mii/mii_manager.h index 0c8295ebe..1f5c9e16f 100644 --- a/src/core/hle/service/mii/mii_manager.h +++ b/src/core/hle/service/mii/mii_manager.h @@ -6,7 +6,10 @@ #include <vector> #include "core/hle/result.h" -#include "core/hle/service/mii/types.h" +#include "core/hle/service/mii/mii_types.h" +#include "core/hle/service/mii/types/char_info.h" +#include "core/hle/service/mii/types/store_data.h" +#include "core/hle/service/mii/types/ver3_store_data.h" namespace Service::Mii { @@ -25,7 +28,7 @@ public: CharInfo BuildDefault(std::size_t index); CharInfo ConvertV3ToCharInfo(const Ver3StoreData& mii_v3) const; bool ValidateV3Info(const Ver3StoreData& mii_v3) const; - std::vector<MiiInfoElement> GetDefault(SourceFlag source_flag); + std::vector<CharInfoElement> GetDefault(SourceFlag source_flag); Result GetIndex(const CharInfo& info, u32& index); // This is nn::mii::detail::Ver::StoreDataRaw::BuildFromStoreData @@ -34,6 +37,15 @@ public: // This is nn::mii::detail::NfpStoreDataExtentionRaw::SetFromStoreData NfpStoreDataExtension SetFromStoreData(const CharInfo& mii) const; + struct MiiDatabase { + u32 magic{}; // 'NFDB' + std::array<StoreData, 0x64> miis{}; + INSERT_PADDING_BYTES(1); + u8 count{}; + u16 crc{}; + }; + static_assert(sizeof(MiiDatabase) == 0x1A98, "MiiDatabase has incorrect size."); + private: const Common::UUID user_id{}; u64 update_counter{}; |