diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-11 08:58:46 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-11 08:58:46 +0200 |
commit | bd169f417f471f574784fa3b499f57ad42cf1013 (patch) | |
tree | 5671f7c85a1f69d2dad2eb895878c0981d205ad7 /src/core/hle/service/am/applets/applet_mii_edit.cpp | |
parent | service: mii: Fix ver3 inconsistencies (diff) | |
download | yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.tar yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.tar.gz yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.tar.bz2 yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.tar.lz yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.tar.xz yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.tar.zst yuzu-bd169f417f471f574784fa3b499f57ad42cf1013.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/applets/applet_mii_edit.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/hle/service/am/applets/applet_mii_edit.cpp b/src/core/hle/service/am/applets/applet_mii_edit.cpp index f8e2bac32..350a90818 100644 --- a/src/core/hle/service/am/applets/applet_mii_edit.cpp +++ b/src/core/hle/service/am/applets/applet_mii_edit.cpp @@ -85,15 +85,18 @@ void MiiEdit::Execute() { break; case MiiEditAppletMode::CreateMii: case MiiEditAppletMode::EditMii: { - Service::Mii::MiiManager mii_manager; + Mii::CharInfo char_info{}; + Mii::StoreData store_data{}; + store_data.BuildBase(Mii::Gender::Male); + char_info.SetFromStoreData(store_data); - const MiiEditCharInfo char_info{ + const MiiEditCharInfo edit_char_info{ .mii_info{applet_input_common.applet_mode == MiiEditAppletMode::EditMii ? applet_input_v4.char_info.mii_info - : mii_manager.BuildBase(Mii::Gender::Male)}, + : char_info}, }; - MiiEditOutputForCharInfoEditing(MiiEditResult::Success, char_info); + MiiEditOutputForCharInfoEditing(MiiEditResult::Success, edit_char_info); break; } default: |