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

Function waitSelect

src/Osako/CardAgent.cpp:270–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 void waitSelect()
271 {
272 if (FLAG_OFF(msFlags, 4) || FLAG_OFF(msFlags, 8))
273 {
274 if (FLAG_OFF(msFlags, 4))
275 {
276 mspPrintMemoryCard->closeWindowNoSe();
277 }
278 msState = 0xe;
279 return;
280 }
281
282 // I'm losing my mind here, so many switches inside one
283 switch (CardMgr::msaCardData[msChan].mProbeStatus)
284 {
285 case CARD_RESULT_NOCARD:
286 switch (msSelectAt)
287 {
288 case 2:
289 case 3:
290 case 4:
291 case 5:
292 case 6:
293 case 7:
294 case 8:
295 case 10:
296 case 11:
297 case 12:
298 msState = 4;
299 msSelectAt = 1;
300 mspPrintMemoryCard->init(PrintMemoryCard::mcNoCardContinue);
301 return;
302 case 13:
303 case 14:
304 case 15:
305 msResult = 2;
306 msState = 0xe;
307 mspPrintMemoryCard->closeWindow();
308 return;
309 }
310 default:
311 if (msSelectAt == 9 && (CardMgr::probeStatusOk(0) || CardMgr::probeStatusOk(1)))
312 {
313 msResult = 2;
314 msState = 0xe;
315 mspPrintMemoryCard->closeWindow();
316 break;
317 }
318 switch (mspPrintMemoryCard->get_14Thing())
319 {
320 case 0:
321 switch (msSelectAt)
322 {
323 case 1:
324 case 2:
325 case 3:
326 case 4:
327 case 6:

Callers 1

calcFunction · 0.85

Calls 9

probeStatusOkFunction · 0.85
formatFunction · 0.85
createFileFunction · 0.85
closeWindowNoSeMethod · 0.80
closeWindowMethod · 0.80
get_14ThingMethod · 0.80
resetFunction · 0.70
initMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected