summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfc
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 19:42:32 +0100
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 23:04:02 +0100
commit7ffd62424804eceb73f01b1c4e8dc216134c8295 (patch)
tree2bfe2a9b5d0a3f0857c73475cbdf24f6fe66c740 /src/core/hle/service/nfc
parentfsp_srv: Use ReadBufferSpan (diff)
downloadyuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.gz
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.bz2
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.lz
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.xz
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.tar.zst
yuzu-7ffd62424804eceb73f01b1c4e8dc216134c8295.zip
Diffstat (limited to 'src/core/hle/service/nfc')
-rw-r--r--src/core/hle/service/nfc/mifare_user.cpp4
-rw-r--r--src/core/hle/service/nfc/nfc_user.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/nfc/mifare_user.cpp b/src/core/hle/service/nfc/mifare_user.cpp
index 51523a3ae..7d391c936 100644
--- a/src/core/hle/service/nfc/mifare_user.cpp
+++ b/src/core/hle/service/nfc/mifare_user.cpp
@@ -168,7 +168,7 @@ void MFIUser::StopDetection(Kernel::HLERequestContext& ctx) {
void MFIUser::Read(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto device_handle{rp.Pop<u64>()};
- const auto buffer{ctx.ReadBuffer()};
+ const auto buffer{ctx.ReadBufferSpan()};
const auto number_of_commands{ctx.GetReadBufferNumElements<NFP::MifareReadBlockParameter>()};
std::vector<NFP::MifareReadBlockParameter> read_commands(number_of_commands);
@@ -209,7 +209,7 @@ void MFIUser::Read(Kernel::HLERequestContext& ctx) {
void MFIUser::Write(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto device_handle{rp.Pop<u64>()};
- const auto buffer{ctx.ReadBuffer()};
+ const auto buffer{ctx.ReadBufferSpan()};
const auto number_of_commands{ctx.GetReadBufferNumElements<NFP::MifareWriteBlockParameter>()};
std::vector<NFP::MifareWriteBlockParameter> write_commands(number_of_commands);
diff --git a/src/core/hle/service/nfc/nfc_user.cpp b/src/core/hle/service/nfc/nfc_user.cpp
index 89aa6b3f5..5dcf8a423 100644
--- a/src/core/hle/service/nfc/nfc_user.cpp
+++ b/src/core/hle/service/nfc/nfc_user.cpp
@@ -325,7 +325,7 @@ void IUser::SendCommandByPassThrough(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const auto device_handle{rp.Pop<u64>()};
const auto timeout{rp.PopRaw<Time::Clock::TimeSpanType>()};
- const auto command_data{ctx.ReadBuffer()};
+ const auto command_data{ctx.ReadBufferSpan()};
LOG_INFO(Service_NFC, "(STUBBED) called, device_handle={}, timeout={}, data_size={}",
device_handle, timeout.ToSeconds(), command_data.size());