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

Method SetDVDState

src/SB/Core/gc/iTRC.cpp:459–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459S32 iTRCDisk::SetDVDState()
460{
461 S32 dvd_state = DVDGetDriveStatus();
462 switch (dvd_state)
463 {
464 case DVD_STATE_END:
465 break;
466 case DVD_STATE_NO_DISK:
467 SetErrorMessage(
468 "Please insert the \'SpongeBob SquarePants: Battle for Bikini Bottom\' Game Disc.");
469 break;
470 case DVD_STATE_WRONG_DISK:
471 SetErrorMessage(
472 "This is not the \'SpongeBob SquarePants: Battle for Bikini Bottom\' Game Disc. Please insert the \'SpongeBob SquarePants: Battle for Bikini Bottom\' Game Disc.");
473 break;
474 case DVD_STATE_COVER_OPEN:
475 SetErrorMessage(
476 "The Disc Cover is open. If you want to continue the game, please close the Disc Cover.");
477 break;
478 case DVD_STATE_RETRY:
479 SetErrorMessage(
480 "The Game Disc could not be read. Please read the Nintendo GameCube\x99 Instruction Booklet for more information.");
481 break;
482 case DVD_STATE_FATAL_ERROR:
483 SetErrorMessage(
484 "An error has occurred. Turn the power off and refer to the Nintendo GameCube\x99 Instruction Booklet for further instructions.");
485 break;
486 default:
487 if (!DVDCheckDisk())
488 {
489 SetErrorMessage(
490 "Please wait... Checking for the \'SpongeBob SquarePants: Battle for Bikini Bottom\' Game Disc.");
491 dvd_state = DVD_STATE_COVER_OPEN;
492 }
493 break;
494 }
495 return dvd_state;
496}
497
498bool iTRCDisk::CheckDVDAndResetState()
499{

Callers

nothing calls this directly

Calls 2

DVDGetDriveStatusFunction · 0.85
DVDCheckDiskFunction · 0.85

Tested by

no test coverage detected