mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
nfc: misc changes
This commit is contained in:
parent
a02b00f167
commit
d3c2cd223a
@ -88,7 +88,7 @@ typedef struct {
|
|||||||
} PACKED NfpuMiiCharInfo;
|
} PACKED NfpuMiiCharInfo;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
NfpuMiiCharInfo mii_char_info;
|
NfpuMiiCharInfo mii;
|
||||||
u16 first_write_year;
|
u16 first_write_year;
|
||||||
u8 first_write_month;
|
u8 first_write_month;
|
||||||
u8 first_write_day;
|
u8 first_write_day;
|
||||||
@ -158,9 +158,9 @@ Result nfpuGetCommonInfo(HidControllerID id, NfpuCommonInfo *out);
|
|||||||
Result nfpuGetModelInfo(HidControllerID id, NfpuModelInfo *out);
|
Result nfpuGetModelInfo(HidControllerID id, NfpuModelInfo *out);
|
||||||
|
|
||||||
Result nfpuOpenApplicationArea(HidControllerID id, u32 app_id, u32 *npad_id);
|
Result nfpuOpenApplicationArea(HidControllerID id, u32 app_id, u32 *npad_id);
|
||||||
Result nfpuGetApplicationArea(HidControllerID id, void *buf, size_t buf_size);
|
Result nfpuGetApplicationArea(HidControllerID id, void* buf, size_t buf_size);
|
||||||
Result nfpuSetApplicationArea(HidControllerID id, const void *buf, size_t buf_size);
|
Result nfpuSetApplicationArea(HidControllerID id, const void* buf, size_t buf_size);
|
||||||
Result nfpuCreateApplicationArea(HidControllerID id, u32 app_id, const void *buf, size_t buf_size);
|
Result nfpuCreateApplicationArea(HidControllerID id, u32 app_id, const void* buf, size_t buf_size);
|
||||||
|
|
||||||
Result nfpuFlush(HidControllerID id);
|
Result nfpuFlush(HidControllerID id);
|
||||||
Result nfpuRestore(HidControllerID id);
|
Result nfpuRestore(HidControllerID id);
|
||||||
|
@ -487,8 +487,10 @@ Result nfpuListDevices(u32 *count, HidControllerID *out, size_t num_elements) {
|
|||||||
|
|
||||||
rc = resp->result;
|
rc = resp->result;
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc) && count && out) {
|
if (R_SUCCEEDED(rc) && count)
|
||||||
*count = resp->count;
|
*count = resp->count;
|
||||||
|
|
||||||
|
if (R_SUCCEEDED(rc) && out) {
|
||||||
for (size_t i=0; i<num_elements; i++)
|
for (size_t i=0; i<num_elements; i++)
|
||||||
out[i] = hidOfficialToControllerID(buf[i]);
|
out[i] = hidOfficialToControllerID(buf[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user