mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-05 07:24:34 +00:00
Reduce overlay dependencies on global.h (8) (#2478)
* move variables into z64environment.h * z_room.h * z64sram.h, z64ss_sram.h, z64font.h, kanread.h * z64lifemeter.h, z64debug.h, debug_arena.h * buffers.h * remove z_bgcheck global * gamealloc.h * suggestions * .bdd
This commit is contained in:
parent
3d61fb85ef
commit
981af4b6af
72 changed files with 578 additions and 392 deletions
|
@ -36,32 +36,9 @@ void ActorOverlayTable_Init(void);
|
|||
void ActorOverlayTable_Cleanup(void);
|
||||
|
||||
void SaveContext_Init(void);
|
||||
s32 func_800635D0(s32);
|
||||
void Regs_Init(void);
|
||||
void DebugCamera_ScreenText(u8 x, u8 y, const char* text);
|
||||
void DebugCamera_ScreenTextColored(u8 x, u8 y, u8 colorIndex, const char* text);
|
||||
#if DEBUG_FEATURES
|
||||
void Regs_UpdateEditor(Input* input);
|
||||
#endif
|
||||
void Debug_DrawText(GraphicsContext* gfxCtx);
|
||||
|
||||
void* MemCpy(void* dest, const void* src, s32 len);
|
||||
|
||||
s32 Kanji_OffsetFromShiftJIS(s32 character);
|
||||
#if PLATFORM_IQUE
|
||||
void Font_LoadCharCHN(Font* font, u16 character, u16 codePointIndex);
|
||||
#endif
|
||||
void Font_LoadCharWide(Font* font, u16 character, u16 codePointIndex);
|
||||
void Font_LoadChar(Font* font, u8 character, u16 codePointIndex);
|
||||
void Font_LoadMessageBoxIcon(Font* font, u16 icon);
|
||||
void Font_LoadOrderedFont(Font* font);
|
||||
|
||||
void Health_InitMeter(PlayState* play);
|
||||
void Health_UpdateMeter(PlayState* play);
|
||||
void Health_DrawMeter(PlayState* play);
|
||||
void Health_UpdateBeatingHeart(PlayState* play);
|
||||
u32 Health_IsCritical(void);
|
||||
|
||||
void MapMark_Init(PlayState* play);
|
||||
void MapMark_ClearPointers(PlayState* play);
|
||||
void MapMark_Draw(PlayState* play);
|
||||
|
@ -72,35 +49,9 @@ void Sched_FlushTaskQueue(void);
|
|||
|
||||
void PreNMI_Init(GameState* thisx);
|
||||
|
||||
void func_80095AA0(PlayState* play, Room* room, Input* input, s32 arg3);
|
||||
void Room_DrawBackground2D(Gfx** gfxP, void* tex, void* tlut, u16 width, u16 height, u8 fmt, u8 siz, u16 tlutMode,
|
||||
u16 tlutCount, f32 offsetX, f32 offsetY);
|
||||
void Room_Init(PlayState* play, Room* room);
|
||||
u32 Room_SetupFirstRoom(PlayState* play, RoomContext* roomCtx);
|
||||
s32 Room_RequestNewRoom(PlayState* play, RoomContext* roomCtx, s32 roomNum);
|
||||
s32 Room_ProcessRoomRequest(PlayState* play, RoomContext* roomCtx);
|
||||
void Room_Draw(PlayState* play, Room* room, u32 flags);
|
||||
void Room_FinishRoomChange(PlayState* play, RoomContext* roomCtx);
|
||||
void Sample_Destroy(GameState* thisx);
|
||||
void Sample_Init(GameState* thisx);
|
||||
|
||||
void Sram_InitNewSave(void);
|
||||
void Sram_InitDebugSave(void);
|
||||
void Sram_OpenSave(SramContext* sramCtx);
|
||||
void Sram_WriteSave(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);
|
||||
void Sram_Init(PlayState* play, SramContext* sramCtx);
|
||||
void SsSram_Init(s32 addr, u8 handleType, u8 handleDomain, u8 handleLatency, u8 handlePageSize, u8 handleRelDuration,
|
||||
u8 handlePulse, u32 handleSpeed);
|
||||
void SsSram_Dma(void* dramAddr, size_t size, s32 direction);
|
||||
void SsSram_ReadWrite(s32 addr, void* dramAddr, size_t size, s32 direction);
|
||||
|
||||
void ViMode_LogPrint(OSViMode* osViMode);
|
||||
void ViMode_Configure(ViMode* viMode, s32 type, s32 tvType, s32 loRes, s32 antialiasOff, s32 modeN, s32 fb16Bit,
|
||||
s32 width, s32 height, s32 leftAdjust, s32 rightAdjust, s32 upperAdjust, s32 lowerAdjust);
|
||||
|
@ -168,13 +119,6 @@ void func_800C213C(PreRender* this, Gfx** gfxP);
|
|||
void PreRender_RestoreFramebuffer(PreRender* this, Gfx** gfxP);
|
||||
void PreRender_CopyImageRegion(PreRender* this, Gfx** gfxP);
|
||||
void PreRender_ApplyFilters(PreRender* this);
|
||||
#if DEBUG_FEATURES
|
||||
void* GameAlloc_MallocDebug(GameAlloc* this, u32 size, const char* file, int line);
|
||||
#endif
|
||||
void* GameAlloc_Malloc(GameAlloc* this, u32 size);
|
||||
void GameAlloc_Free(GameAlloc* this, void* data);
|
||||
void GameAlloc_Cleanup(GameAlloc* this);
|
||||
void GameAlloc_Init(GameAlloc* this);
|
||||
void Graph_InitTHGA(GraphicsContext* gfxCtx);
|
||||
GameStateOverlay* Graph_GetNextGameState(GameState* gameState);
|
||||
void Graph_Init(GraphicsContext* gfxCtx);
|
||||
|
@ -195,24 +139,6 @@ void* SysCfb_GetFbEnd(void);
|
|||
NORETURN void func_800D31A0(void);
|
||||
void func_800D31F0(void);
|
||||
void func_800D3210(void);
|
||||
void* DebugArena_Malloc(u32 size);
|
||||
void* DebugArena_MallocR(u32 size);
|
||||
void* DebugArena_Realloc(void* ptr, u32 newSize);
|
||||
void DebugArena_Free(void* ptr);
|
||||
void* DebugArena_Calloc(u32 num, u32 size);
|
||||
void DebugArena_GetSizes(u32* outMaxFree, u32* outFree, u32* outAlloc);
|
||||
void DebugArena_Check(void);
|
||||
void DebugArena_Init(void* start, u32 size);
|
||||
void DebugArena_Cleanup(void);
|
||||
s32 DebugArena_IsInitialized(void);
|
||||
#if DEBUG_FEATURES
|
||||
void DebugArena_CheckPointer(void* ptr, u32 size, const char* name, const char* action);
|
||||
void* DebugArena_MallocDebug(u32 size, const char* file, int line);
|
||||
void* DebugArena_MallocRDebug(u32 size, const char* file, int line);
|
||||
void* DebugArena_ReallocDebug(void* ptr, u32 newSize, const char* file, int line);
|
||||
void DebugArena_FreeDebug(void* ptr, const char* file, int line);
|
||||
void DebugArena_Display(void);
|
||||
#endif
|
||||
|
||||
void RcpUtils_PrintRegisterStatus(void);
|
||||
void RcpUtils_Reset(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue