| 35 | } |
| 36 | |
| 37 | s32 __CARDAccess(CARDControl *card, CARDDir *ent) |
| 38 | { |
| 39 | const DVDDiskID *diskID = card->diskID; |
| 40 | if (ent->gameName[0] == 0xFF) |
| 41 | { |
| 42 | return CARD_RESULT_NOFILE; |
| 43 | } |
| 44 | |
| 45 | if (diskID == &__CARDDiskNone || (memcmp(ent->gameName, diskID->gameName, 4) == 0 && |
| 46 | memcmp(ent->company, diskID->company, 2) == 0)) |
| 47 | { |
| 48 | return CARD_RESULT_READY; |
| 49 | } |
| 50 | |
| 51 | return CARD_RESULT_NOPERM; |
| 52 | } |
| 53 | |
| 54 | s32 __CARDIsWritable(CARDControl *card, CARDDir *entry) |
| 55 | { |
no test coverage detected