summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfc/nfc_interface.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-06-04 23:50:44 +0200
committerNarr the Reg <juangerman-13@hotmail.com>2023-06-07 01:06:21 +0200
commit107aa52cdbf9c6e7dc4a6e95da3ae18bc382778e (patch)
tree409c20c05570bfd1ee86abe5e6c0cd2ec1069d17 /src/core/hle/service/nfc/nfc_interface.cpp
parentMerge pull request #10651 from Morph1984/a (diff)
downloadyuzu-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/nfc_interface.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/hle/service/nfc/nfc_interface.cpp b/src/core/hle/service/nfc/nfc_interface.cpp
index 0fa29d398..198d0f2b9 100644
--- a/src/core/hle/service/nfc/nfc_interface.cpp
+++ b/src/core/hle/service/nfc/nfc_interface.cpp
@@ -302,7 +302,7 @@ Result NfcInterface::TranslateResultToServiceError(Result result) const {
return TranslateResultToNfp(result);
}
default:
- if (result != ResultUnknown216) {
+ if (result != ResultBackupPathAlreadyExist) {
return result;
}
return ResultUnknown74;
@@ -343,6 +343,9 @@ Result NfcInterface::TranslateResultToNfp(Result result) const {
if (result == ResultApplicationAreaIsNotInitialized) {
return NFP::ResultApplicationAreaIsNotInitialized;
}
+ if (result == ResultCorruptedDataWithBackup) {
+ return NFP::ResultCorruptedDataWithBackup;
+ }
if (result == ResultCorruptedData) {
return NFP::ResultCorruptedData;
}
@@ -355,6 +358,9 @@ Result NfcInterface::TranslateResultToNfp(Result result) const {
if (result == ResultNotAnAmiibo) {
return NFP::ResultNotAnAmiibo;
}
+ if (result == ResultUnableToAccessBackupFile) {
+ return NFP::ResultUnableToAccessBackupFile;
+ }
LOG_WARNING(Service_NFC, "Result conversion not handled");
return result;
}