| 437 | } |
| 438 | |
| 439 | Result FSUSER_GetFreeBytes(u64* freeBytes, FS_Archive archive) |
| 440 | { |
| 441 | u32 *cmdbuf = getThreadCommandBuffer(); |
| 442 | |
| 443 | cmdbuf[0] = IPC_MakeHeader(0x812,2,0); // 0x8120080 |
| 444 | cmdbuf[1] = (u32) archive; |
| 445 | cmdbuf[2] = (u32) (archive >> 32); |
| 446 | |
| 447 | Result ret = 0; |
| 448 | if(R_FAILED(ret = svcSendSyncRequest(fsSessionForArchive(archive)))) return ret; |
| 449 | |
| 450 | if(freeBytes) *freeBytes = cmdbuf[2] | ((u64) cmdbuf[3] << 32); |
| 451 | |
| 452 | return cmdbuf[1]; |
| 453 | } |
| 454 | |
| 455 | Result FSUSER_GetCardType(FS_CardType* type) |
| 456 | { |
nothing calls this directly
no test coverage detected