| 3 | #include <dolphin/CARDPriv.h> |
| 4 | |
| 5 | s32 __CARDGetStatusEx(s32 chan, s32 fileNo, CARDDir* dirent) |
| 6 | { |
| 7 | if ((fileNo < 0) || (fileNo >= CARD_MAX_FILE)) |
| 8 | { |
| 9 | return CARD_RESULT_FATAL_ERROR; |
| 10 | } |
| 11 | |
| 12 | { |
| 13 | CARDControl* card; |
| 14 | CARDDir* dir; |
| 15 | CARDDir* ent; |
| 16 | s32 result = __CARDGetControlBlock(chan, &card); |
| 17 | |
| 18 | if (result < 0) |
| 19 | { |
| 20 | return result; |
| 21 | } |
| 22 | |
| 23 | dir = __CARDGetDirBlock(card); |
| 24 | ent = &dir[fileNo]; |
| 25 | result = __CARDIsReadable(card, ent); |
| 26 | if (result >= 0) |
| 27 | { |
| 28 | memcpy(dirent, ent, 0x40); |
| 29 | } |
| 30 | return __CARDPutControlBlock(card, result); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | s32 __CARDSetStatusExAsync(s32 chan, s32 fileNo, CARDDir* dirent, CARDCallback callback) |
| 35 | { |
no test coverage detected