From 77022a6d11d214138f72e983a54cc6058a4af642 Mon Sep 17 00:00:00 2001 From: XorTroll <33005497+XorTroll@users.noreply.github.com> Date: Sun, 5 Apr 2020 19:54:47 +0200 Subject: [PATCH] Fix nfp OpenApplicationArea command (#391) --- nx/include/switch/services/nfc.h | 2 +- nx/source/services/nfc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nx/include/switch/services/nfc.h b/nx/include/switch/services/nfc.h index 90d40012..89f3612a 100644 --- a/nx/include/switch/services/nfc.h +++ b/nx/include/switch/services/nfc.h @@ -175,7 +175,7 @@ Result nfpMount(const NfcDeviceHandle *handle, NfpDeviceType device_type, NfpMou Result nfpUnmount(const NfcDeviceHandle *handle); /// Not available with ::NfpServiceType_System. -Result nfpOpenApplicationArea(const NfcDeviceHandle *handle, u32 app_id, u32 *npad_id); +Result nfpOpenApplicationArea(const NfcDeviceHandle *handle, u32 app_id); /// Not available with ::NfpServiceType_System. Result nfpGetApplicationArea(const NfcDeviceHandle *handle, void* buf, size_t buf_size); diff --git a/nx/source/services/nfc.c b/nx/source/services/nfc.c index e3a28bb1..3ff9efd4 100644 --- a/nx/source/services/nfc.c +++ b/nx/source/services/nfc.c @@ -236,7 +236,7 @@ Result nfpUnmount(const NfcDeviceHandle *handle) { return _nfcCmdInDevhandleNoOut(&g_nfpInterface, handle, 6); } -Result nfpOpenApplicationArea(const NfcDeviceHandle *handle, u32 app_id, u32 *npad_id) { +Result nfpOpenApplicationArea(const NfcDeviceHandle *handle, u32 app_id) { if (g_nfpServiceType == NfpServiceType_System) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); @@ -246,7 +246,7 @@ Result nfpOpenApplicationArea(const NfcDeviceHandle *handle, u32 app_id, u32 *np } in = { *handle, app_id }; serviceAssumeDomain(&g_nfpInterface); - return serviceDispatchInOut(&g_nfpInterface, 7, in, *npad_id); + return serviceDispatchIn(&g_nfpInterface, 7, in); } Result nfpGetApplicationArea(const NfcDeviceHandle *handle, void* buf, size_t buf_size) {