| 495 | } |
| 496 | |
| 497 | Result FSUSER_GetSdmcFatfsError(u32* error) |
| 498 | { |
| 499 | u32 *cmdbuf = getThreadCommandBuffer(); |
| 500 | |
| 501 | cmdbuf[0] = IPC_MakeHeader(0x816,0,0); // 0x8160000 |
| 502 | |
| 503 | Result ret = 0; |
| 504 | if(R_FAILED(ret = svcSendSyncRequest(fsSession()))) return ret; |
| 505 | |
| 506 | if(error) *error = cmdbuf[2]; |
| 507 | |
| 508 | return cmdbuf[1]; |
| 509 | } |
| 510 | |
| 511 | Result FSUSER_IsSdmcDetected(bool *detected) |
| 512 | { |
nothing calls this directly
no test coverage detected