Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
modeIncludeList.c File Reference

Functions

int modeListGetCount ()
 Gets the current number of swadgeModes present int he file.
 
void modeListSetMenu (menu_t *menu)
 Initializes a menu with all the current swadge modes.
 
int32_t getModeIdx (const swadgeMode_t *mode)
 Get the unique index of a mode.
 

Variables

swadgeMode_t *const allSwadgeModes []
 Add swadgeMode_t pointers to this struct to include them in emulator and main menu.
 

Function Documentation

◆ modeListGetCount()

int modeListGetCount ( void )

Gets the current number of swadgeModes present int he file.

Returns
int num of modes

◆ modeListSetMenu()

void modeListSetMenu ( menu_t * menu)

Initializes a menu with all the current swadge modes.

Parameters
menuMenu to set

◆ getModeIdx()

int32_t getModeIdx ( const swadgeMode_t * mode)

Get the unique index of a mode.

Parameters
modeThe mode to get an index for
Returns
The index of the mode

Variable Documentation

◆ allSwadgeModes

swadgeMode_t* const allSwadgeModes[]
Initial value:
= {
&accelTestMode, &colorchordMode, &cosCrunchMode, &danceMode, &factoryTestMode, &gamepadMode,
&introMode, &jukeboxMode, &keebTestMode, &mainMenuMode, &modeCredits, &modeDiceRoller,
&sequencerMode, &swadgeItMode, &synthMode, &touchTestMode, &tunernomeMode, &trophyTestMode,
&tCaseMode, &nameTestMode, &roboRunnerMode, &bouncyMode,
}
swadgeMode_t cosCrunchMode

Add swadgeMode_t pointers to this struct to include them in emulator and main menu.