MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / __CARDAccess

Function __CARDAccess

src/dolphin/src/card/CARDOpen.c:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37s32 __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
54s32 __CARDIsWritable(CARDControl *card, CARDDir *entry)
55{

Callers 2

__CARDIsWritableFunction · 0.85
__CARDGetFileNoFunction · 0.85

Calls 1

memcmpFunction · 0.85

Tested by

no test coverage detected