diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-11-26 15:50:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-26 15:50:08 +0100 |
commit | e0c894408a961a6e349080e6aa01945a773284a2 (patch) | |
tree | 546ecdecb413e7b75035811eac4fa41eb331c561 /src/core/hle | |
parent | Merge pull request #12156 from german77/firmwarevs (diff) | |
parent | service: am: Create random mii for cabinet applet (diff) | |
download | yuzu-e0c894408a961a6e349080e6aa01945a773284a2.tar yuzu-e0c894408a961a6e349080e6aa01945a773284a2.tar.gz yuzu-e0c894408a961a6e349080e6aa01945a773284a2.tar.bz2 yuzu-e0c894408a961a6e349080e6aa01945a773284a2.tar.lz yuzu-e0c894408a961a6e349080e6aa01945a773284a2.tar.xz yuzu-e0c894408a961a6e349080e6aa01945a773284a2.tar.zst yuzu-e0c894408a961a6e349080e6aa01945a773284a2.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/am/applets/applet_cabinet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/applet_cabinet.cpp b/src/core/hle/service/am/applets/applet_cabinet.cpp index b379dadeb..9d1960cb7 100644 --- a/src/core/hle/service/am/applets/applet_cabinet.cpp +++ b/src/core/hle/service/am/applets/applet_cabinet.cpp @@ -122,7 +122,8 @@ void Cabinet::DisplayCompleted(bool apply_changes, std::string_view amiibo_name) Service::NFP::RegisterInfoPrivate register_info{}; std::memcpy(register_info.amiibo_name.data(), amiibo_name.data(), std::min(amiibo_name.size(), register_info.amiibo_name.size() - 1)); - + register_info.mii_store_data.BuildRandom(Mii::Age::All, Mii::Gender::All, Mii::Race::All); + register_info.mii_store_data.SetNickname({u'y', u'u', u'z', u'u'}); nfp_device->SetRegisterInfoPrivate(register_info); break; } |