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

Function __CARDVerify

src/dolphin/src/card/CARDCheck.c:202–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202s32 __CARDVerify(CARDControl* card)
203{
204 s32 result;
205 int errors;
206
207 result = VerifyID(card);
208 if (result < 0)
209 {
210 return result;
211 }
212
213 errors = VerifyDir(card, NULL);
214 errors += VerifyFAT(card, NULL);
215 switch (errors)
216 {
217 case 0:
218 return CARD_RESULT_READY;
219 case 1:
220 return CARD_RESULT_BROKEN;
221 default:
222 return CARD_RESULT_BROKEN;
223 }
224}
225
226s32 CARDCheckExAsync(s32 chan, s32* xferBytes, CARDCallback callback)
227{

Callers 1

__CARDMountCallbackFunction · 0.85

Calls 3

VerifyIDFunction · 0.85
VerifyDirFunction · 0.85
VerifyFATFunction · 0.85

Tested by

no test coverage detected