2020-10-03 15:22:44 +00:00
|
|
|
#include "global.h"
|
2020-04-04 16:12:59 +00:00
|
|
|
|
2020-04-04 16:38:05 +00:00
|
|
|
#define GAMESTATE_OVERLAY(name, init, destroy, size) \
|
|
|
|
{ \
|
|
|
|
NULL, (u32)_ovl_##name##SegmentRomStart, (u32)_ovl_##name##SegmentRomEnd, _ovl_##name##SegmentStart, \
|
|
|
|
_ovl_##name##SegmentEnd, 0, init, destroy, 0, 0, 0, size \
|
2020-04-04 16:12:59 +00:00
|
|
|
}
|
2020-04-04 16:38:05 +00:00
|
|
|
#define GAMESTATE_OVERLAY_INTERNAL(init, destroy, size) \
|
|
|
|
{ NULL, 0, 0, NULL, NULL, 0, init, destroy, 0, 0, 0, size }
|
2020-04-04 16:12:59 +00:00
|
|
|
|
2020-04-04 16:38:05 +00:00
|
|
|
GameStateOverlay gGameStateOverlayTable[] = {
|
2020-04-04 16:12:59 +00:00
|
|
|
GAMESTATE_OVERLAY_INTERNAL(TitleSetup_Init, TitleSetup_Destroy, sizeof(GameState)),
|
2020-06-14 02:59:58 +00:00
|
|
|
GAMESTATE_OVERLAY(select, Select_Init, Select_Destroy, sizeof(SelectContext)),
|
2020-04-04 16:12:59 +00:00
|
|
|
GAMESTATE_OVERLAY(title, Title_Init, Title_Destroy, sizeof(TitleContext)),
|
2020-04-16 21:36:12 +00:00
|
|
|
GAMESTATE_OVERLAY_INTERNAL(Gameplay_Init, Gameplay_Destroy, sizeof(GlobalContext)),
|
2020-04-04 16:12:59 +00:00
|
|
|
GAMESTATE_OVERLAY(opening, Opening_Init, Opening_Destroy, sizeof(OpeningContext)),
|
2021-11-15 21:33:44 +00:00
|
|
|
GAMESTATE_OVERLAY(file_choose, FileChoose_Init, FileChoose_Destroy, sizeof(FileChooseContext)),
|
2020-04-04 16:38:05 +00:00
|
|
|
};
|