nfc: missing arg in nfpuGetApplicationArea is actually the npad_id

This commit is contained in:
averne 2019-01-29 07:33:29 +01:00 committed by fincs
parent ff144c492a
commit d4b436bfa2
2 changed files with 6 additions and 6 deletions

View File

@ -161,7 +161,7 @@ Result nfpuGetRegisterInfo(HidControllerID id, NfpuRegisterInfo *out);
Result nfpuGetCommonInfo(HidControllerID id, NfpuCommonInfo *out);
Result nfpuGetModelInfo(HidControllerID id, NfpuModelInfo *out);
Result nfpuOpenApplicationArea(HidControllerID id, NfpuAppId app_id, u32* area_size);
Result nfpuOpenApplicationArea(HidControllerID id, NfpuAppId app_id, u32* npad_id);
Result nfpuGetApplicationArea(HidControllerID id, void* buf, size_t buf_size);
/// Calls nfc:user.

View File

@ -609,9 +609,9 @@ inline Result nfpuGetModelInfo(HidControllerID id, NfpuModelInfo *out) {
return _nfpuInterfaceCmdInIdOutBuffer(&g_nfpuInterface, 16, id, out, sizeof(NfpuModelInfo));
}
Result nfpuOpenApplicationArea(HidControllerID id, NfpuAppId app_id, u32* area_size) {
Result nfpuOpenApplicationArea(HidControllerID id, NfpuAppId app_id, u32* npad_id) {
if (id == CONTROLLER_P1_AUTO)
return nfpuOpenApplicationArea(g_controllerP1AutoID, app_id, area_size);
return nfpuOpenApplicationArea(g_controllerP1AutoID, app_id, npad_id);
IpcCommand c;
ipcInitialize(&c);
@ -637,7 +637,7 @@ Result nfpuOpenApplicationArea(HidControllerID id, NfpuAppId app_id, u32* area_s
struct {
u64 magic;
u64 result;
u32 area_size;
u32 npad_id;
} *resp;
serviceIpcParse(&g_nfpuInterface, &r, sizeof(*resp));
@ -645,8 +645,8 @@ Result nfpuOpenApplicationArea(HidControllerID id, NfpuAppId app_id, u32* area_s
rc = resp->result;
if (R_SUCCEEDED(rc) && area_size)
*area_size = resp->area_size;
if (R_SUCCEEDED(rc) && npad_id)
*npad_id = resp->npad_id;
}
return rc;