diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2022-08-31 02:28:37 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2022-09-07 08:04:00 +0200 |
commit | caa138b33f6bbc18cde4d403017dad6bd4387e13 (patch) | |
tree | 7de25f6a4f3f17e2beff0711e01119bedde15c2e /src/core/hle/service/mii | |
parent | core: nfp: Implement Convert and RecreateApplicationArea, accuracy fixes (diff) | |
download | yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.tar yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.tar.gz yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.tar.bz2 yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.tar.lz yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.tar.xz yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.tar.zst yuzu-caa138b33f6bbc18cde4d403017dad6bd4387e13.zip |
Diffstat (limited to 'src/core/hle/service/mii')
-rw-r--r-- | src/core/hle/service/mii/mii_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/mii/mii_manager.cpp b/src/core/hle/service/mii/mii_manager.cpp index 97d1b948f..c484a9c8d 100644 --- a/src/core/hle/service/mii/mii_manager.cpp +++ b/src/core/hle/service/mii/mii_manager.cpp @@ -443,8 +443,9 @@ CharInfo MiiManager::ConvertV3ToCharInfo(Ver3StoreData mii_v3) const { mii.height = mii_v3.height; mii.build = mii_v3.build; + memset(mii.name.data(), 0, sizeof(mii.name)); + memcpy(mii.name.data(), mii_v3.mii_name.data(), sizeof(mii_v3.mii_name)); mii.font_region = mii_v3.region_information.character_set; - memcpy(mii.name.data(), mii_v3.mii_name.data(), 10); mii.faceline_type = mii_v3.appearance_bits1.face_shape; mii.faceline_color = mii_v3.appearance_bits1.skin_color; |