mirror of
https://github.com/zeldaret/oot
synced 2026-06-04 10:48:51 -04:00
031d946db7
* First pass z_select * lots of progress. 2 non matchings and data stuff needed * match Select_LoadGame * z_select almost ok, 1 func left * remove comments * remove comments and add description * remove unused flg_set asm * set_next_gamestate macro * pr suggestions 1 * pr suggestions 2 * map -> scene * pr suggestions 3 Co-authored-by: Kelebek1 <eeeedddccc@hotmail.co.uk>
19 lines
1.1 KiB
C
19 lines
1.1 KiB
C
#include <global.h>
|
|
|
|
#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 \
|
|
}
|
|
#define GAMESTATE_OVERLAY_INTERNAL(init, destroy, size) \
|
|
{ NULL, 0, 0, NULL, NULL, 0, init, destroy, 0, 0, 0, size }
|
|
|
|
GameStateOverlay gGameStateOverlayTable[] = {
|
|
GAMESTATE_OVERLAY_INTERNAL(TitleSetup_Init, TitleSetup_Destroy, sizeof(GameState)),
|
|
GAMESTATE_OVERLAY(select, Select_Init, Select_Destroy, sizeof(SelectContext)),
|
|
GAMESTATE_OVERLAY(title, Title_Init, Title_Destroy, sizeof(TitleContext)),
|
|
GAMESTATE_OVERLAY_INTERNAL(Gameplay_Init, Gameplay_Destroy, sizeof(GlobalContext)),
|
|
GAMESTATE_OVERLAY(opening, Opening_Init, Opening_Destroy, sizeof(OpeningContext)),
|
|
GAMESTATE_OVERLAY(file_choose, func_80811A20, func_80811A18, 0x1CAE0),
|
|
};
|