aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc/common/device.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-05-25 14:07:16 -0700
committerGitHub <noreply@github.com>2023-05-25 14:07:16 -0700
commit39fcbfead67312c7e3886edec0fc20b010d25af2 (patch)
treea601ac622b62f4931202e13a7cf733b6f580390a /src/core/hle/service/nfc/common/device.cpp
parentbdebdf83fb80ce36b35867d6b37eae813c9e4827 (diff)
parent60ba48c5e22efbf6d5a8b71741c68e3d9e1eb7f8 (diff)
Merge pull request #10396 from german77/amiibo_write
input_common: Implement amiibo writing
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 e5d4545a87..0bd7900e15 100644
--- a/src/core/hle/service/nfc/common/device.cpp
+++ b/src/core/hle/service/nfc/common/device.cpp
@@ -426,11 +426,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() {
@@ -449,11 +449,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) {