summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfc/nfc_user.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2022-11-10 20:52:48 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2022-12-02 03:43:59 +0100
commita4725bcb73c5038853f460e15c4bfa9f679e7f4b (patch)
treeee0ab201ee43638ba274c7fdced6d97c490e4cfb /src/core/hle/service/nfc/nfc_user.cpp
parentMerge pull request #9320 from yuzu-emu/fix-audio-suspend (diff)
downloadyuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.tar
yuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.tar.gz
yuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.tar.bz2
yuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.tar.lz
yuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.tar.xz
yuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.tar.zst
yuzu-a4725bcb73c5038853f460e15c4bfa9f679e7f4b.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nfc/nfc_user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nfc/nfc_user.cpp b/src/core/hle/service/nfc/nfc_user.cpp
index ced2d560b..4615697e2 100644
--- a/src/core/hle/service/nfc/nfc_user.cpp
+++ b/src/core/hle/service/nfc/nfc_user.cpp
@@ -201,7 +201,7 @@ void IUser::AttachAvailabilityChangeEvent(Kernel::HLERequestContext& ctx) {
void IUser::StartDetection(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto device_handle{rp.Pop<u64>()};
- const auto nfp_protocol{rp.Pop<s32>()};
+ const auto nfp_protocol{rp.PopEnum<NFP::TagProtocol>()};
LOG_INFO(Service_NFC, "called, device_handle={}, nfp_protocol={}", device_handle, nfp_protocol);
if (state == State::NonInitialized) {
@@ -267,7 +267,7 @@ void IUser::GetTagInfo(Kernel::HLERequestContext& ctx) {
}
NFP::TagInfo tag_info{};
- const auto result = device.value()->GetTagInfo(tag_info);
+ const auto result = device.value()->GetTagInfo(tag_info, false);
ctx.WriteBuffer(tag_info);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);