summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfc/nfc_interface.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-06-12 09:17:10 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-06-15 02:08:35 +0200
commitb1b13ddc6bdc8d9d67a53a33465f5cf84146a262 (patch)
tree20898261f367a1b78cbbfa3c13bff48427ffa107 /src/core/hle/service/nfc/nfc_interface.cpp
parentMerge pull request #10781 from 8bitDream/vcpkg (diff)
downloadyuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.tar
yuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.tar.gz
yuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.tar.bz2
yuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.tar.lz
yuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.tar.xz
yuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.tar.zst
yuzu-b1b13ddc6bdc8d9d67a53a33465f5cf84146a262.zip
Diffstat (limited to 'src/core/hle/service/nfc/nfc_interface.cpp')
-rw-r--r--src/core/hle/service/nfc/nfc_interface.cpp5
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;
}