diff --git a/nx/include/switch/services/nfc.h b/nx/include/switch/services/nfc.h index 6e7dea60..d175b0f0 100644 --- a/nx/include/switch/services/nfc.h +++ b/nx/include/switch/services/nfc.h @@ -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. diff --git a/nx/source/services/nfc.c b/nx/source/services/nfc.c index 7363207b..0c70a073 100644 --- a/nx/source/services/nfc.c +++ b/nx/source/services/nfc.c @@ -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;