| 509 | } |
| 510 | |
| 511 | Result FSUSER_IsSdmcDetected(bool *detected) |
| 512 | { |
| 513 | u32 *cmdbuf = getThreadCommandBuffer(); |
| 514 | |
| 515 | cmdbuf[0] = IPC_MakeHeader(0x817,0,0); // 0x8170000 |
| 516 | |
| 517 | Result ret = 0; |
| 518 | if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret; |
| 519 | |
| 520 | if(detected) *detected = cmdbuf[2] & 0xFF; |
| 521 | |
| 522 | return cmdbuf[1]; |
| 523 | } |
| 524 | |
| 525 | Result FSUSER_IsSdmcWritable(bool *writable) |
| 526 | { |
nothing calls this directly
no test coverage detected