summaryrefslogtreecommitdiff
path: root/src/core/hle/service/nfc
diff options
context:
space:
mode:
authorGravatar bunnei2023-05-25 14:07:16 -0700
committerGravatar GitHub2023-05-25 14:07:16 -0700
commitffa1fba7d632d69e564cce302b5e5cf4bf131071 (patch)
treea601ac622b62f4931202e13a7cf733b6f580390a /src/core/hle/service/nfc
parentMerge pull request #10454 from 521337/fix-u-option (diff)
parentinput_common: Implement amiibo writting (diff)
downloadyuzu-ffa1fba7d632d69e564cce302b5e5cf4bf131071.tar.gz
yuzu-ffa1fba7d632d69e564cce302b5e5cf4bf131071.tar.xz
yuzu-ffa1fba7d632d69e564cce302b5e5cf4bf131071.zip
Merge pull request #10396 from german77/amiibo_write
input_common: Implement amiibo writing
Diffstat (limited to 'src/core/hle/service/nfc')
-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 e5d4545a8..0bd7900e1 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() {
426 426
427 tag_data.write_counter++; 427 tag_data.write_counter++;
428 428
429 FlushWithBreak(NFP::BreakType::Normal); 429 const auto result = FlushWithBreak(NFP::BreakType::Normal);
430 430
431 is_data_moddified = false; 431 is_data_moddified = false;
432 432
433 return ResultSuccess; 433 return result;
434} 434}
435 435
436Result NfcDevice::FlushDebug() { 436Result NfcDevice::FlushDebug() {
@@ -449,11 +449,11 @@ Result NfcDevice::FlushDebug() {
449 449
450 tag_data.write_counter++; 450 tag_data.write_counter++;
451 451
452 FlushWithBreak(NFP::BreakType::Normal); 452 const auto result = FlushWithBreak(NFP::BreakType::Normal);
453 453
454 is_data_moddified = false; 454 is_data_moddified = false;
455 455
456 return ResultSuccess; 456 return result;
457} 457}
458 458
459Result NfcDevice::FlushWithBreak(NFP::BreakType break_type) { 459Result NfcDevice::FlushWithBreak(NFP::BreakType break_type) {