MIOS/BS2

From WiiBrew
Jump to navigation Jump to search

MIOS has a BS2 similar to the System Menu. BS2Tick, the function responsible for updating it, is called both in a loop in the main function and as a callback.

States

Italicized states under "Next states" are directly jumped to.

State number Action Next state(s)
0 Initializes some globals 3
1 No action 2
2/16/17/18/19/20/21/22/23/24 No action (possibly error trap). Does not update the state. 2, 16, 17, 18, 19, 20, 21, 22, 23, 24
3 ? 4
4/5 Checks the disc format and checks that the disc ID is for a GameCube disc. Continues to state 8 if the the checks were successful, returns 20 if the disc format was not recognized, or returns 23 if the disc ID is not a GameCube ID. 8, 20, 23
8 ? 9
9 Prints appLoaderLength and appLoaderFunc1 10
10 ? 11
11 Initializes the apploader, presumably by calling the entry function. 12
12 Calls apploader main function and prints DVD command info. Unknown if the command itself is issued in state 12 or 13. Returns state 13 if the apploader is still reading info, or state 14 if the apploader is finished. 13, 14
13 ? 12
14 Reads the banner. The actual way the banner is used is not currently known. 15, 16
15 ? 16
25 ? 3