aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc/common/device.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-05-17 22:17:16 -0600
committergerman77 <juangerman-13@hotmail.com>2023-05-21 21:09:20 -0600
commit60ba48c5e22efbf6d5a8b71741c68e3d9e1eb7f8 (patch)
tree6bcb2ca55810c05d15a561e2fa0bc0a6c1a9175a /src/core/hle/service/nfc/common/device.cpp
parentea0d8c4119c1cce1b87cb4fb48dba287352d5f40 (diff)
input_common: Implement amiibo writting
Diffstat (limited to 'src/core/hle/service/nfc/common/device.cpp')
-rw-r--r--src/core/hle/service/nfc/common/device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/nfc/common/device.cpp b/src/core/hle/service/nfc/common/device.cpp
index 322bde2ed3..8a7e9edacf 100644
--- a/src/core/hle/service/nfc/common/device.cpp
+++ b/src/core/hle/service/nfc/common/device.cpp
@@ -421,11 +421,11 @@ Result NfcDevice::Flush() {
tag_data.write_counter++;
- FlushWithBreak(NFP::BreakType::Normal);
+ const auto result = FlushWithBreak(NFP::BreakType::Normal);
is_data_moddified = false;
- return ResultSuccess;
+ return result;
}
Result NfcDevice::FlushDebug() {
@@ -444,11 +444,11 @@ Result NfcDevice::FlushDebug() {
tag_data.write_counter++;
- FlushWithBreak(NFP::BreakType::Normal);
+ const auto result = FlushWithBreak(NFP::BreakType::Normal);
is_data_moddified = false;
- return ResultSuccess;
+ return result;
}
Result NfcDevice::FlushWithBreak(NFP::BreakType break_type) {