Fix nfp OpenApplicationArea command (#391)

This commit is contained in:
XorTroll 2020-04-05 19:54:47 +02:00 committed by GitHub
parent d9c3593183
commit 77022a6d11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ Result nfpMount(const NfcDeviceHandle *handle, NfpDeviceType device_type, NfpMou
Result nfpUnmount(const NfcDeviceHandle *handle); Result nfpUnmount(const NfcDeviceHandle *handle);
/// Not available with ::NfpServiceType_System. /// 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. /// Not available with ::NfpServiceType_System.
Result nfpGetApplicationArea(const NfcDeviceHandle *handle, void* buf, size_t buf_size); Result nfpGetApplicationArea(const NfcDeviceHandle *handle, void* buf, size_t buf_size);

View File

@ -236,7 +236,7 @@ Result nfpUnmount(const NfcDeviceHandle *handle) {
return _nfcCmdInDevhandleNoOut(&g_nfpInterface, handle, 6); 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) if (g_nfpServiceType == NfpServiceType_System)
return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); return MAKERESULT(Module_Libnx, LibnxError_NotInitialized);
@ -246,7 +246,7 @@ Result nfpOpenApplicationArea(const NfcDeviceHandle *handle, u32 app_id, u32 *np
} in = { *handle, app_id }; } in = { *handle, app_id };
serviceAssumeDomain(&g_nfpInterface); 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) { Result nfpGetApplicationArea(const NfcDeviceHandle *handle, void* buf, size_t buf_size) {