| 523 | } |
| 524 | |
| 525 | Result FSUSER_IsSdmcWritable(bool *writable) |
| 526 | { |
| 527 | u32 *cmdbuf = getThreadCommandBuffer(); |
| 528 | |
| 529 | cmdbuf[0] = IPC_MakeHeader(0x818,0,0); // 0x8180000 |
| 530 | |
| 531 | Result ret = 0; |
| 532 | if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret; |
| 533 | |
| 534 | if(writable) *writable = cmdbuf[2] & 0xFF; |
| 535 | |
| 536 | return cmdbuf[1]; |
| 537 | } |
| 538 | |
| 539 | Result FSUSER_GetSdmcCid(u8* out, u32 length) |
| 540 | { |
no test coverage detected