mirror of
https://github.com/zeldaret/oot
synced 2026-08-02 08:32:12 -04:00
Rename game states (#1294)
* `TitleSetup` -> `Setup` * `Title` -> `ConsoleLogo` * `Opening` -> `TitleSetup` * `FileChoose` -> `FileSelect` * `Select` -> `MapSelect` * prenmi/sample `Context` -> `State` * Revert filename changes * . * setupstate cleanup * Oops, `GameState` -> `SetupState`
This commit is contained in:
+14
-15
@@ -1305,10 +1305,10 @@ void Sram_InitNewSave(void);
|
||||
void Sram_InitDebugSave(void);
|
||||
void Sram_OpenSave(SramContext* sramCtx);
|
||||
void Sram_WriteSave(SramContext* sramCtx);
|
||||
void Sram_VerifyAndLoadAllSaves(FileChooseContext* fileChooseCtx, SramContext* sramCtx);
|
||||
void Sram_InitSave(FileChooseContext* fileChooseCtx, SramContext* sramCtx);
|
||||
void Sram_EraseSave(FileChooseContext* fileChooseCtx, SramContext* sramCtx);
|
||||
void Sram_CopySave(FileChooseContext* fileChooseCtx, SramContext* sramCtx);
|
||||
void Sram_VerifyAndLoadAllSaves(FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_InitSave(FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_EraseSave(FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_CopySave(FileSelectState* fileSelect, SramContext* sramCtx);
|
||||
void Sram_WriteSramHeader(SramContext* sramCtx);
|
||||
void Sram_InitSram(GameState* gameState, SramContext* sramCtx);
|
||||
void Sram_Alloc(GameState* gameState, SramContext* sramCtx);
|
||||
@@ -1564,9 +1564,6 @@ void AudioMgr_HandlePreNMI(AudioMgr* audioMgr);
|
||||
void AudioMgr_ThreadEntry(void* arg0);
|
||||
void AudioMgr_Unlock(AudioMgr* audioMgr);
|
||||
void AudioMgr_Init(AudioMgr* audioMgr, void* stack, OSPri pri, OSId id, Scheduler* sched, IrqMgr* irqMgr);
|
||||
void TitleSetup_InitImpl(GameState* gameState);
|
||||
void TitleSetup_Destroy(GameState* gameState);
|
||||
void TitleSetup_Init(GameState* gameState);
|
||||
void GameState_FaultPrint(void);
|
||||
void GameState_SetFBFilter(Gfx** gfx);
|
||||
// ? func_800C4344(?);
|
||||
@@ -2264,13 +2261,15 @@ void func_801109B0(PlayState* play);
|
||||
void Message_Init(PlayState* play);
|
||||
void func_80112098(PlayState* play);
|
||||
|
||||
void Title_Init(GameState* thisx);
|
||||
void Title_Destroy(GameState* thisx);
|
||||
void Select_Init(GameState* thisx);
|
||||
void Select_Destroy(GameState* thisx);
|
||||
void Opening_Init(GameState* thisx);
|
||||
void Opening_Destroy(GameState* thisx);
|
||||
void FileChoose_Init(GameState* thisx);
|
||||
void FileChoose_Destroy(GameState* thisx);
|
||||
void Setup_Init(GameState* thisx);
|
||||
void Setup_Destroy(GameState* thisx);
|
||||
void ConsoleLogo_Init(GameState* thisx);
|
||||
void ConsoleLogo_Destroy(GameState* thisx);
|
||||
void MapSelect_Init(GameState* thisx);
|
||||
void MapSelect_Destroy(GameState* thisx);
|
||||
void TitleSetup_Init(GameState* thisx);
|
||||
void TitleSetup_Destroy(GameState* thisx);
|
||||
void FileSelect_Init(GameState* thisx);
|
||||
void FileSelect_Destroy(GameState* thisx);
|
||||
|
||||
#endif
|
||||
|
||||
+14
-10
@@ -1067,6 +1067,10 @@ typedef struct GameState {
|
||||
/* 0xA0 */ u32 unk_A0;
|
||||
} GameState; // size = 0xA4
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ GameState state;
|
||||
} SetupState; // size = 0xA4
|
||||
|
||||
typedef struct {
|
||||
/* 0x0000 */ GameState state;
|
||||
/* 0x00A4 */ u8* staticSegment;
|
||||
@@ -1081,17 +1085,17 @@ typedef struct {
|
||||
/* 0x01E0 */ char unk_1E0[0x01];
|
||||
/* 0x01E1 */ u8 exit;
|
||||
/* 0x01E2 */ char unk_1E2[0x06];
|
||||
} TitleContext; // size = 0x1E8
|
||||
} ConsoleLogoState; // size = 0x1E8
|
||||
|
||||
struct SelectContext;
|
||||
struct MapSelectState;
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ char* name;
|
||||
/* 0x04 */ void (*loadFunc)(struct SelectContext*, s32);
|
||||
/* 0x04 */ void (*loadFunc)(struct MapSelectState*, s32);
|
||||
/* 0x08 */ s32 entranceIndex;
|
||||
} SceneSelectEntry; // size = 0xC
|
||||
|
||||
typedef struct SelectContext {
|
||||
typedef struct MapSelectState {
|
||||
/* 0x0000 */ GameState state;
|
||||
/* 0x00A8 */ View view;
|
||||
/* 0x01D0 */ s32 count;
|
||||
@@ -1111,13 +1115,13 @@ typedef struct SelectContext {
|
||||
/* 0x0230 */ s32 lockDown;
|
||||
/* 0x0234 */ s32 unk_234; // unused
|
||||
/* 0x0238 */ u8* staticSegment;
|
||||
} SelectContext; // size = 0x240
|
||||
} MapSelectState; // size = 0x240
|
||||
|
||||
typedef struct {
|
||||
/* 0x0000 */ GameState state;
|
||||
/* 0x00A4 */ u8* staticSegment;
|
||||
/* 0x00A8 */ View view;
|
||||
} SampleContext; // size = 0x1D0
|
||||
} SampleState; // size = 0x1D0
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u8 byte0;
|
||||
@@ -1215,7 +1219,7 @@ typedef struct PlayState {
|
||||
typedef struct {
|
||||
/* 0x0000 */ GameState state;
|
||||
/* 0x00A8 */ View view;
|
||||
} OpeningContext; // size = 0x1D0
|
||||
} TitleSetupState; // size = 0x1D0
|
||||
|
||||
typedef struct {
|
||||
/* 0x00000 */ GameState state;
|
||||
@@ -1294,7 +1298,7 @@ typedef struct {
|
||||
/* 0x1CAD2 */ s16 kbdY;
|
||||
/* 0x1CAD4 */ s16 newFileNameCharCount;
|
||||
/* 0x1CAD6 */ s16 unk_1CAD6[5];
|
||||
} FileChooseContext; // size = 0x1CAE0
|
||||
} FileSelectState; // size = 0x1CAE0
|
||||
|
||||
typedef enum {
|
||||
DPM_UNK = 0,
|
||||
@@ -1379,11 +1383,11 @@ typedef struct {
|
||||
/* 0x2C */ u32 instanceSize;
|
||||
} GameStateOverlay; // size = 0x30
|
||||
|
||||
typedef struct PreNMIContext {
|
||||
typedef struct {
|
||||
/* 0x00 */ GameState state;
|
||||
/* 0xA4 */ u32 timer;
|
||||
/* 0xA8 */ UNK_TYPE4 unk_A8;
|
||||
} PreNMIContext; // size = 0xAC
|
||||
} PreNMIState; // size = 0xAC
|
||||
|
||||
typedef enum {
|
||||
/* 1 */ F_8F = 1,
|
||||
|
||||
Reference in New Issue
Block a user