3DSident/source/am.c
Joel 2d51eae691 Reorganize storage details and add more info.
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)
2016-10-16 15:00:34 -05:00

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];
}