diff options
| author | Narr the Reg <juangerman-13@hotmail.com> | 2023-06-12 01:17:10 -0600 |
|---|---|---|
| committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-06-14 18:08:35 -0600 |
| commit | b1b13ddc6bdc8d9d67a53a33465f5cf84146a262 (patch) | |
| tree | 20898261f367a1b78cbbfa3c13bff48427ffa107 /src/core/hle/service/nfc/nfc_interface.cpp | |
| parent | fb97aec26b2f56d7b18394f2d35235b39f6507a9 (diff) | |
service: nfc: Accuracy fixes
Diffstat (limited to 'src/core/hle/service/nfc/nfc_interface.cpp')
| -rw-r--r-- | src/core/hle/service/nfc/nfc_interface.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/hle/service/nfc/nfc_interface.cpp b/src/core/hle/service/nfc/nfc_interface.cpp index 198d0f2b9..48405f6f2 100644 --- a/src/core/hle/service/nfc/nfc_interface.cpp +++ b/src/core/hle/service/nfc/nfc_interface.cpp @@ -355,7 +355,7 @@ Result NfcInterface::TranslateResultToNfp(Result result) const { if (result == ResultApplicationAreaExist) { return NFP::ResultApplicationAreaExist; } - if (result == ResultNotAnAmiibo) { + if (result == ResultInvalidTagType) { return NFP::ResultNotAnAmiibo; } if (result == ResultUnableToAccessBackupFile) { @@ -381,6 +381,9 @@ Result NfcInterface::TranslateResultToMifare(Result result) const { if (result == ResultTagRemoved) { return Mifare::ResultTagRemoved; } + if (result == ResultInvalidTagType) { + return Mifare::ResultNotAMifare; + } LOG_WARNING(Service_NFC, "Result conversion not handled"); return result; } |
