diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-09-29 08:27:50 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-01 19:38:30 +0200 |
commit | 9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790 (patch) | |
tree | ee778afd0292a5cba49dd89d828cc3c14ae43bb4 /src/core/hle/service/nfc/common/device.cpp | |
parent | service: am: Implement shared buffer (diff) | |
download | yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.tar yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.tar.gz yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.tar.bz2 yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.tar.lz yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.tar.xz yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.tar.zst yuzu-9cd5c44019fca1c4122cdd39a3cfb0b8f82e6790.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nfc/common/device.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp index 68c407f81..e7a00deb3 100644 --- a/src/core/hle/service/nfc/common/device.cpp +++ b/src/core/hle/service/nfc/common/device.cpp @@ -830,11 +830,6 @@ Result NfcDevice::SetRegisterInfoPrivate(const NFP::RegisterInfoPrivate& registe 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; 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); - tag_data.owner_mii.BuildFromStoreData(store_data); - tag_data.mii_extension = extension; + tag_data.owner_mii.BuildFromStoreData(register_info.mii_store_data); + tag_data.mii_extension.SetFromStoreData(register_info.mii_store_data); tag_data.unknown = 0; tag_data.unknown2 = {}; settings.country_code_id = 0; |