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.h
Go to the documentation of this file.
1
21
22//==============================================================================
23// Includes
24//==============================================================================
25
26/*
27 Quickly regenerate with:
28 grep -lirE '^extern swadgeMode_t (.*);' main | grep -oE '([^/]+\.h)' \
29 | grep -v quickSettings | awk '{printf "#include \"%s\"\n",$1 }' | sort
30*/
31
32#include "accelTest.h"
33#include "bouncy.h"
34#include "colorchord.h"
35#include "cosCrunch.h"
36#include "dance.h"
37#include "factoryTest.h"
38#include "gamepad.h"
39#include "introMode.h"
40#include "jukebox.h"
41#include "keebTest.h"
42#include "mainMenu.h"
43#include "mode_credits.h"
44#include "mode_diceroller.h"
45#include "mode_synth.h"
46#include "roboRunner.h"
47#include "sequencerMode.h"
48#include "swadgeIt.h"
49#include "swadgePassTest.h"
50#include "touchTest.h"
51#include "trophyCase.h"
52#include "trophyTest.h"
53#include "tunernome.h"
54
55#include "nameTest.h"
56
57//==============================================================================
58// Function Prototypes
59//==============================================================================
60
66int modeListGetCount(void);
67
73void modeListSetMenu(menu_t* menu);
74
81int32_t getModeIdx(const swadgeMode_t* mode);
82
83//==============================================================================
84// Externs
85//==============================================================================
86
87extern swadgeMode_t* const allSwadgeModes[];
struct _menu_t menu_t
The underlying data for a menu. This fundamentally is a list of menuItem_t.
Definition menu.h:151
swadgeMode_t *const allSwadgeModes[]
Add swadgeMode_t pointers to this struct to include them in emulator and main menu.
Definition modeIncludeList.c:18
int modeListGetCount(void)
Gets the current number of swadgeModes present int he file.
Definition modeIncludeList.c:29
void modeListSetMenu(menu_t *menu)
Initializes a menu with all the current swadge modes.
Definition modeIncludeList.c:34
int32_t getModeIdx(const swadgeMode_t *mode)
Get the unique index of a mode.
Definition modeIncludeList.c:68
A struct of all the function pointers necessary for a swadge mode. If a mode does not need a particul...