mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-17 15:05:05 -05:00
99260acaf1
* Use PlayState instead of GlobalContext - GlobalContext -> PlayState - globalCtx -> play - GlobalCtx -> PlayState - globalContext -> playState * Find and replace Gameplay_ with Play_ * Correct some misnamed argument cases
22 lines
1.3 KiB
C
22 lines
1.3 KiB
C
#include "global.h"
|
|
|
|
//#define GAMESTATE_OVERLAY(name, init, destroy, size) \
|
|
// { \
|
|
// NULL, (uintptr_t)_ovl_##name##SegmentRomStart, (uintptr_t)_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 }
|
|
|
|
#define GAMESTATE_OVERLAY(name, 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(Play_Init, Play_Destroy, sizeof(PlayState)),
|
|
GAMESTATE_OVERLAY(opening, Opening_Init, Opening_Destroy, sizeof(OpeningContext)),
|
|
GAMESTATE_OVERLAY(file_choose, FileChoose_Init, FileChoose_Destroy, sizeof(FileChooseContext)),
|
|
};
|