diff options
author | german77 <juangerman-13@hotmail.com> | 2023-06-04 23:50:44 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-06-07 01:06:21 +0200 |
commit | 107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e (patch) | |
tree | 409c20c05570bfd1ee86abe5e6c0cd2ec1069d17 /src/core/hle/service/nfc/common/device_manager.cpp | |
parent | Merge pull request #10651 from Morph1984/a (diff) | |
download | yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.tar yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.tar.gz yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.tar.bz2 yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.tar.lz yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.tar.xz yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.tar.zst yuzu-107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nfc/common/device_manager.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/hle/service/nfc/common/device_manager.cpp b/src/core/hle/service/nfc/common/device_manager.cpp index d5deaaf27..cffd602df 100644 --- a/src/core/hle/service/nfc/common/device_manager.cpp +++ b/src/core/hle/service/nfc/common/device_manager.cpp @@ -543,9 +543,14 @@ Result DeviceManager::ReadBackupData(u64 device_handle, std::span<u8> data) cons std::shared_ptr<NfcDevice> device = nullptr; auto result = GetDeviceHandle(device_handle, device); + NFC::TagInfo tag_info{}; if (result.IsSuccess()) { - result = device->ReadBackupData(data); + result = device->GetTagInfo(tag_info, false); + } + + if (result.IsSuccess()) { + result = device->ReadBackupData(tag_info.uuid, data); result = VerifyDeviceResult(device, result); } @@ -557,9 +562,14 @@ Result DeviceManager::WriteBackupData(u64 device_handle, std::span<const u8> dat std::shared_ptr<NfcDevice> device = nullptr; auto result = GetDeviceHandle(device_handle, device); + NFC::TagInfo tag_info{}; + + if (result.IsSuccess()) { + result = device->GetTagInfo(tag_info, false); + } if (result.IsSuccess()) { - result = device->WriteBackupData(data); + result = device->WriteBackupData(tag_info.uuid, data); result = VerifyDeviceResult(device, result); } |