diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-11 08:23:46 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-11 08:23:46 +0200 |
commit | 571399930cc3578acff064a7087fe85e7b2dd9b7 (patch) | |
tree | aa02d3b9932d758d1febb3e7bbd6cf50a9ee6f31 /src/core/hle/service/mii/mii_manager.cpp | |
parent | service: mii: move char info operations (diff) | |
download | yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.tar yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.tar.gz yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.tar.bz2 yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.tar.lz yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.tar.xz yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.tar.zst yuzu-571399930cc3578acff064a7087fe85e7b2dd9b7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/mii/mii_manager.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/core/hle/service/mii/mii_manager.cpp b/src/core/hle/service/mii/mii_manager.cpp index 2137a9af1..3951e0b9c 100644 --- a/src/core/hle/service/mii/mii_manager.cpp +++ b/src/core/hle/service/mii/mii_manager.cpp @@ -98,23 +98,12 @@ CharInfo MiiManager::BuildDefault(std::size_t index) { CharInfo MiiManager::ConvertV3ToCharInfo(const Ver3StoreData& mii_v3) const { CharInfo char_info{}; - mii_v3.BuildToStoreData(char_info); + StoreData store_data{}; + mii_v3.BuildToStoreData(store_data); + char_info.SetFromStoreData(store_data); return char_info; } -NfpStoreDataExtension MiiManager::SetFromStoreData(const CharInfo& mii) const { - return { - .faceline_color = static_cast<u8>(mii.GetFacelineColor() & 0xf), - .hair_color = static_cast<u8>(mii.GetHairColor() & 0x7f), - .eye_color = static_cast<u8>(mii.GetEyeColor() & 0x7f), - .eyebrow_color = static_cast<u8>(mii.GetEyebrowColor() & 0x7f), - .mouth_color = static_cast<u8>(mii.GetMouthColor() & 0x7f), - .beard_color = static_cast<u8>(mii.GetBeardColor() & 0x7f), - .glass_color = static_cast<u8>(mii.GetGlassColor() & 0x7f), - .glass_type = static_cast<u8>(mii.GetGlassType() & 0x1f), - }; -} - std::vector<CharInfoElement> MiiManager::GetDefault(SourceFlag source_flag) { std::vector<CharInfoElement> result; |