OSCR
Open Source Cartridge Reader
Loading...
Searching...
No Matches
OSCR::Menus Namespace Reference

Menu options for internal features. More...

Functions

void main ()

Variables

CoreDefinition const MainMenuOptions []
 List of cores shown on the main menu screen.
uint8_t const kMainMenuOptionCount = sizeof(MainMenuOptions)/sizeof(MainMenuOptions[0])
uint8_t const kMainMenuNonCoreCount = 2
uint8_t const kMainMenuCoreCount = kMainMenuOptionCount - kMainMenuNonCoreCount

Detailed Description

Menu options for internal features.

Function Documentation

◆ main()

void OSCR::Menus::main ( )
extern

Renders Main Menu and executes menu method for the selected core.

Require at least 1 core to be enabled.

Variable Documentation

◆ kMainMenuCoreCount

uint8_t const OSCR::Menus::kMainMenuCoreCount = kMainMenuOptionCount - kMainMenuNonCoreCount
constexpr

Number of core options in the MainMenuOptions array.

◆ kMainMenuNonCoreCount

uint8_t const OSCR::Menus::kMainMenuNonCoreCount = 2
constexpr

Number of non-core options (i.e. About, Reset, ...) in the MainMenuOptions array.

◆ kMainMenuOptionCount

uint8_t const OSCR::Menus::kMainMenuOptionCount = sizeof(MainMenuOptions)/sizeof(MainMenuOptions[0])
constexpr

Number of entries in the MainMenuOptions array.

◆ MainMenuOptions

CoreDefinition const OSCR::Menus::MainMenuOptions
constexpr

List of cores shown on the main menu screen.

Changing the order of the cores in this array will change their display order on the main menu as well.