MCPcopy Create free account
hub / github.com/doldecomp/mkdd / check0

Function check0

src/Osako/CardAgent.cpp:422–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420 }
421
422 void check0()
423 {
424 if (FLAG_OFF(msFlags, 4))
425 {
426 msState = 0xe;
427 mspPrintMemoryCard->closeWindowNoSe();
428 return;
429 }
430
431 switch (CardMgr::msaCardData[msChan].mProbeStatus)
432 {
433 case CARD_RESULT_READY:
434 {
435 if (CardMgr::msaCardData[msChan].mSectorSize == 0x2000)
436 {
437 if (CardMgr::mount(msChan))
438 {
439 msState = 5;
440 return;
441 }
442 errorIOError();
443 return;
444 }
445 msState = 4;
446 msSelectAt = 3;
447 mspPrintMemoryCard->init(PrintMemoryCard::mcWithouMKContinue);
448 break;
449 }
450 case CARD_RESULT_BUSY:
451 break;
452 case CARD_RESULT_NOCARD:
453 errorNoCard();
454 break;
455 case CARD_RESULT_WRONGDEVICE:
456 errorWrongDevice();
457 break;
458 case CARD_RESULT_FATAL_ERROR:
459#line 508
460 JUT_ASSERT_MSG(0, "Program Error at CardAgent!\n")
461 break;
462 default:
463 JUT_PANIC(0);
464 break;
465 }
466 }
467
468 void waitMount()
469 {

Callers 1

calcFunction · 0.85

Calls 6

mountFunction · 0.85
errorIOErrorFunction · 0.85
errorNoCardFunction · 0.85
errorWrongDeviceFunction · 0.85
closeWindowNoSeMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected