yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

service: nfc: Implement SetRegisterInfoPrivate mii support

This commit is contained in:
Narr the Reg 2023-09-29 00:27:50 -06:00
parent 2687a83f6a
commit 9cd5c44019
1 changed files with 2 additions and 7 deletions

View File

@ -830,11 +830,6 @@ Result NfcDevice::SetRegisterInfoPrivate(const NFP::RegisterInfoPrivate& registe
return ResultWrongDeviceState; return ResultWrongDeviceState;
} }
Service::Mii::StoreData store_data{};
Service::Mii::NfpStoreDataExtension extension{};
store_data.BuildBase(Mii::Gender::Male);
extension.SetFromStoreData(store_data);
auto& settings = tag_data.settings; auto& settings = tag_data.settings;
if (tag_data.settings.settings.amiibo_initialized == 0) { if (tag_data.settings.settings.amiibo_initialized == 0) {
@ -843,8 +838,8 @@ Result NfcDevice::SetRegisterInfoPrivate(const NFP::RegisterInfoPrivate& registe
} }
SetAmiiboName(settings, register_info.amiibo_name); SetAmiiboName(settings, register_info.amiibo_name);
tag_data.owner_mii.BuildFromStoreData(store_data); tag_data.owner_mii.BuildFromStoreData(register_info.mii_store_data);
tag_data.mii_extension = extension; tag_data.mii_extension.SetFromStoreData(register_info.mii_store_data);
tag_data.unknown = 0; tag_data.unknown = 0;
tag_data.unknown2 = {}; tag_data.unknown2 = {};
settings.country_code_id = 0; settings.country_code_id = 0;