mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-02 22:14:33 +00:00
Clean out z64.h (#2484)
* Clean out z64.h * fix version include * overlay.h * pr suggestion * try fixing main.c * add back forward declare * fix bss * header guard * prefix
This commit is contained in:
parent
2e4d7a1101
commit
5ddb3e68b6
36 changed files with 199 additions and 157 deletions
|
@ -5,6 +5,7 @@
|
|||
#include "ultra64/ultratypes.h"
|
||||
#include "libu64/pad.h"
|
||||
#include "gamealloc.h"
|
||||
#include "romfile.h"
|
||||
#include "tha.h"
|
||||
|
||||
struct GraphicsContext;
|
||||
|
@ -19,6 +20,22 @@ typedef enum GameStateId {
|
|||
#undef DEFINE_GAMESTATE
|
||||
#undef DEFINE_GAMESTATE_INTERNAL
|
||||
|
||||
typedef struct GameStateOverlay {
|
||||
/* 0x00 */ void* loadedRamAddr;
|
||||
/* 0x04 */ RomFile file; // if applicable
|
||||
/* 0x0C */ void* vramStart; // if applicable
|
||||
/* 0x10 */ void* vramEnd; // if applicable
|
||||
/* 0x14 */ void* unk_14;
|
||||
/* 0x18 */ void* init;
|
||||
/* 0x1C */ void* destroy;
|
||||
/* 0x20 */ void* unk_20;
|
||||
/* 0x24 */ void* unk_24;
|
||||
/* 0x28 */ s32 unk_28;
|
||||
/* 0x2C */ u32 instanceSize;
|
||||
} GameStateOverlay; // size = 0x30
|
||||
|
||||
extern GameStateOverlay gGameStateOverlayTable[GAMESTATE_ID_MAX];
|
||||
|
||||
struct GameState;
|
||||
|
||||
typedef void (*GameStateFunc)(struct GameState* gameState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue