mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
Better formatting and naming
This commit is contained in:
parent
b7fee1d48b
commit
7ef8f82ed1
@ -73,7 +73,7 @@ Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *patte
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Gets the unique pad's serial number.
|
* @brief Gets the unique pad's serial number.
|
||||||
* @param pad_id Id of the unique pad.
|
* @param UniquePadId UniquePadId for the controller.
|
||||||
* @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x19 bytes)
|
* @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x19 bytes)
|
||||||
*/
|
*/
|
||||||
Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial);
|
Result hidsysGetUniquePadSerialNumber(u64 UniquePadId, char *serial);
|
||||||
|
@ -300,7 +300,7 @@ Result hidsysSetNotificationLedPattern(const HidsysNotificationLedPattern *patte
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial) {
|
Result hidsysGetUniquePadSerialNumber(u64 UniquePadId, char *serial) {
|
||||||
if (hosversionBefore(5,0,0))
|
if (hosversionBefore(5,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ Result hidsysGetUniquePadSerialNumber(u64 pad_id, char *serial) {
|
|||||||
|
|
||||||
raw->magic = SFCI_MAGIC;
|
raw->magic = SFCI_MAGIC;
|
||||||
raw->cmd_id = 809;
|
raw->cmd_id = 809;
|
||||||
raw->pad_id = pad_id;
|
raw->pad_id = UniquePadId;
|
||||||
|
|
||||||
Result rc = serviceIpcDispatch(&g_hidsysSrv);
|
Result rc = serviceIpcDispatch(&g_hidsysSrv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user