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

Function zSaveLoad_CardPrompt

src/SB/Game/zSaveLoad.cpp:441–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441S32 zSaveLoad_CardPrompt(S32 cardNumber)
442{
443 S32 i = 0x15;
444 if (cardNumber == 1)
445 {
446 i = 0;
447 }
448 zSaveLoad_UIEvent(i, eEventEnable);
449
450 i = 0x15;
451 if (cardNumber == 1)
452 {
453 i = 0;
454 }
455 zSaveLoad_UIEvent(i, eEventUIFocusOff_Unselect);
456
457 i = 0x24;
458 if (cardNumber == 1)
459 {
460 i = 0x11;
461 }
462 zSaveLoad_UIEvent(i, eEventUIFocusOn_Select);
463
464 i = 0x16;
465 if (cardNumber == 1)
466 {
467 i = 1;
468 }
469 zSaveLoad_UIEvent(i, eEventUIFocusOff_Unselect);
470
471 promptSel = -1;
472 while (promptSel == -1)
473 {
474 zSaveLoad_Tick();
475 }
476
477 i = 0x24;
478 if (cardNumber == 1)
479 {
480 i = 0x11;
481 }
482 zSaveLoad_UIEvent(i, eEventUIFocusOff_Unselect);
483
484 if (cardNumber == 1)
485 {
486 zSaveLoad_UIEvent(0, eEventDisable);
487 }
488 return promptSel;
489}
490
491S32 zSaveLoad_CardPromptFormat(S32 mode)
492{

Callers 3

zSaveLoad_CardCheckFunction · 0.85
zSaveLoad_LoadLoopFunction · 0.85
zSaveLoad_SaveLoopFunction · 0.85

Calls 2

zSaveLoad_UIEventFunction · 0.85
zSaveLoad_TickFunction · 0.70

Tested by

no test coverage detected