mirror of
https://github.com/joel16/3DSident.git
synced 2024-11-23 11:39:43 +00:00
2d51eae691
Now displays device ID, and soap ID. Storage is displayed as {Partition} Storage : Free / Total Enabled cfgs service to allow the use of CFGS functions (getSerial)
17 lines
343 B
C
17 lines
343 B
C
#include "am.h"
|
|
|
|
Result AMNet_GetDeviceCert(u8 *buffer)
|
|
{
|
|
Result ret = 0;
|
|
u32 *cmdbuf = getThreadCommandBuffer();
|
|
|
|
cmdbuf[0] = IPC_MakeHeader(0x818,1,2); // 0x08180042
|
|
cmdbuf[1] = 0x180;
|
|
cmdbuf[2] = (0x180 << 4) | 0xC;
|
|
cmdbuf[3] = (u32)buffer;
|
|
|
|
if(R_FAILED(ret = svcSendSyncRequest(amHandle))) return ret;
|
|
|
|
return (Result)cmdbuf[1];
|
|
}
|