mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
service: am: Create random mii for cabinet applet
This commit is contained in:
parent
de58618421
commit
4ce6762945
1 changed files with 2 additions and 1 deletions
|
@ -122,7 +122,8 @@ void Cabinet::DisplayCompleted(bool apply_changes, std::string_view amiibo_name)
|
||||||
Service::NFP::RegisterInfoPrivate register_info{};
|
Service::NFP::RegisterInfoPrivate register_info{};
|
||||||
std::memcpy(register_info.amiibo_name.data(), amiibo_name.data(),
|
std::memcpy(register_info.amiibo_name.data(), amiibo_name.data(),
|
||||||
std::min(amiibo_name.size(), register_info.amiibo_name.size() - 1));
|
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);
|
nfp_device->SetRegisterInfoPrivate(register_info);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue