mirror of
https://github.com/HackerN64/HackerOoT.git
synced 2026-01-21 10:37:37 -08:00
Merge remote-tracking branch 'decomp/main' into decomp_merge
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "debug/print.h"
|
||||
#include "debug/collision_view.h"
|
||||
#include "debug/menu.h"
|
||||
#include "debug/profiler.h"
|
||||
|
||||
#define DEBUG_PRINT_VAR(var) PRINTF("%s: %d\n", #var, var)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define PROFILER_INLINE_H
|
||||
|
||||
#include "profiler.h"
|
||||
#include "variables.h"
|
||||
#include "f3dex3.h"
|
||||
#include "buffers.h"
|
||||
|
||||
extern void Profiler_RecordEventWithTime(u8 type, OSTime time);
|
||||
|
||||
18
include/f3dex3.h
Normal file
18
include/f3dex3.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef F3DEX3_H
|
||||
#define F3DEX3_H
|
||||
|
||||
#include "config.h"
|
||||
#include "ultra64.h"
|
||||
|
||||
#if ENABLE_F3DEX3
|
||||
|
||||
extern u8 gF3DEX3TextBuffer[];
|
||||
extern volatile s8 gLoadedF3DEX3Version;
|
||||
extern volatile s8 gF3DEX3ProfVersion;
|
||||
extern volatile s8 gF3DEX3NOCVersion;
|
||||
extern s8 gF3DEX3OccMode;
|
||||
extern u8 gUseMemsetForZBuffer;
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
8
include/flag_set.h
Normal file
8
include/flag_set.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef FLAG_SET_H
|
||||
#define FLAG_SET_H
|
||||
|
||||
struct PlayState;
|
||||
|
||||
void FlagSet_Update(struct PlayState* play);
|
||||
|
||||
#endif
|
||||
@@ -1,82 +0,0 @@
|
||||
#ifndef FUNCTIONS_H
|
||||
#define FUNCTIONS_H
|
||||
|
||||
#include "z64.h"
|
||||
#include "macros.h"
|
||||
|
||||
void Idle_ThreadEntry(void* arg);
|
||||
|
||||
#if DEBUG_FEATURES
|
||||
void isPrintfInit(void);
|
||||
#endif
|
||||
void rmonPrintf(const char* fmt, ...);
|
||||
|
||||
#if DEBUG_FEATURES
|
||||
void* is_proutSyncPrintf(void* arg, const char* str, size_t count);
|
||||
NORETURN void func_80002384(const char* exp, const char* file, int line);
|
||||
#endif
|
||||
|
||||
OSPiHandle* osDriveRomInit(void);
|
||||
|
||||
void Mio0_Decompress(u8* src, u8* dst);
|
||||
|
||||
void FlagSet_Update(PlayState* play); // ENABLE_EVENT_EDITOR
|
||||
|
||||
void* MemCpy(void* dest, const void* src, s32 len);
|
||||
|
||||
void TransitionTile_Destroy(TransitionTile* this);
|
||||
TransitionTile* TransitionTile_Init(TransitionTile* this, s32 cols, s32 rows);
|
||||
void TransitionTile_Draw(TransitionTile* this, Gfx** gfxP);
|
||||
void TransitionTile_Update(TransitionTile* this);
|
||||
|
||||
void TransitionTriforce_Start(void* thisx);
|
||||
void* TransitionTriforce_Init(void* thisx);
|
||||
void TransitionTriforce_Destroy(void* thisx);
|
||||
void TransitionTriforce_Update(void* thisx, s32 updateRate);
|
||||
void TransitionTriforce_SetColor(void* thisx, u32 color);
|
||||
void TransitionTriforce_SetType(void* thisx, s32 type);
|
||||
void TransitionTriforce_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionTriforce_IsDone(void* thisx);
|
||||
|
||||
void TransitionWipe_Start(void* thisx);
|
||||
void* TransitionWipe_Init(void* thisx);
|
||||
void TransitionWipe_Destroy(void* thisx);
|
||||
void TransitionWipe_Update(void* thisx, s32 updateRate);
|
||||
void TransitionWipe_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionWipe_IsDone(void* thisx);
|
||||
void TransitionWipe_SetType(void* thisx, s32 type);
|
||||
void TransitionWipe_SetColor(void* thisx, u32 color);
|
||||
|
||||
void TransitionCircle_Start(void* thisx);
|
||||
void* TransitionCircle_Init(void* thisx);
|
||||
void TransitionCircle_Destroy(void* thisx);
|
||||
void TransitionCircle_Update(void* thisx, s32 updateRate);
|
||||
void TransitionCircle_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionCircle_IsDone(void* thisx);
|
||||
void TransitionCircle_SetType(void* thisx, s32 type);
|
||||
void TransitionCircle_SetColor(void* thisx, u32 color);
|
||||
void TransitionCircle_SetUnkColor(void* thisx, u32 color);
|
||||
|
||||
void TransitionFade_Start(void* thisx);
|
||||
void* TransitionFade_Init(void* thisx);
|
||||
void TransitionFade_Destroy(void* thisx);
|
||||
void TransitionFade_Update(void* thisx, s32 updateRate);
|
||||
void TransitionFade_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionFade_IsDone(void* thisx);
|
||||
void TransitionFade_SetColor(void* thisx, u32 color);
|
||||
void TransitionFade_SetType(void* thisx, s32 type);
|
||||
|
||||
void SysCfb_Init(s32 n64dd);
|
||||
void* SysCfb_GetFbPtr(s32 idx);
|
||||
void* SysCfb_GetFbEnd(void);
|
||||
|
||||
void RcpUtils_PrintRegisterStatus(void);
|
||||
void RcpUtils_Reset(void);
|
||||
|
||||
void SystemHeap_Init(void* start, u32 size);
|
||||
|
||||
#if ENABLE_PROFILER
|
||||
#include "debug/profiler_inline.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -1,7 +1,6 @@
|
||||
#ifndef GLOBAL_H
|
||||
#define GLOBAL_H
|
||||
|
||||
#include "functions.h"
|
||||
#include "variables.h"
|
||||
#include "macros.h"
|
||||
#include "versions.h"
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
#define HELPERS_H
|
||||
|
||||
#include "ultra64/ultratypes.h"
|
||||
#include "functions.h"
|
||||
#include "config.h"
|
||||
#include "z64game.h"
|
||||
#include "z64environment.h"
|
||||
#include "z64skybox.h"
|
||||
#include "z64view.h"
|
||||
|
||||
void Helpers_LoadDefinedScene(GameState* gameState);
|
||||
void Helpers_LoadTitleScreen(GameState* gameState);
|
||||
|
||||
6
include/idle.h
Normal file
6
include/idle.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef IDLE_H
|
||||
#define IDLE_H
|
||||
|
||||
void Idle_ThreadEntry(void* arg);
|
||||
|
||||
#endif
|
||||
10
include/inflate.h
Normal file
10
include/inflate.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef INFLATE_H
|
||||
#define INFLATE_H
|
||||
|
||||
#include "libc/stddef.h"
|
||||
#include "libc/stdint.h"
|
||||
#include "ultra64.h"
|
||||
|
||||
void gzip_decompress(uintptr_t romStart, u8* dst, size_t size);
|
||||
|
||||
#endif
|
||||
18
include/is_debug.h
Normal file
18
include/is_debug.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef IS_DEBUG_H
|
||||
#define IS_DEBUG_H
|
||||
|
||||
#include "libc/stddef.h"
|
||||
#include "attributes.h"
|
||||
|
||||
#if DEBUG_FEATURES
|
||||
void isPrintfInit(void);
|
||||
#endif
|
||||
|
||||
void rmonPrintf(const char* fmt, ...);
|
||||
|
||||
#if DEBUG_FEATURES
|
||||
void* is_proutSyncPrintf(void* arg, const char* str, size_t count);
|
||||
NORETURN void func_80002384(const char* exp, const char* file, int line);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
6
include/libu64/rcp_utils.h
Normal file
6
include/libu64/rcp_utils.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef LIBU64_RCP_UTILS_H
|
||||
#define LIBU64_RCP_UTILS_H
|
||||
|
||||
void RcpUtils_Reset(void);
|
||||
|
||||
#endif
|
||||
8
include/libu64/runtime.h
Normal file
8
include/libu64/runtime.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef LIBU64_RUNTIME_H
|
||||
#define LIBU64_RUNTIME_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
void Runtime_Init(void* start, u32 size);
|
||||
|
||||
#endif
|
||||
9
include/memory_utils.h
Normal file
9
include/memory_utils.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef MEMORY_UTILS_H
|
||||
#define MEMORY_UTILS_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
void* MemCpy(void* dest, const void* src, s32 len);
|
||||
void* MemSet(void* dest, s32 val, s32 len);
|
||||
|
||||
#endif
|
||||
8
include/mio0.h
Normal file
8
include/mio0.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef MIO0_H
|
||||
#define MIO0_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
void Mio0_Decompress(u8* src, u8* dst);
|
||||
|
||||
#endif
|
||||
10
include/sys_cfb.h
Normal file
10
include/sys_cfb.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef SYS_CFB_H
|
||||
#define SYS_CFB_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
void SysCfb_Init(s32 n64dd);
|
||||
void* SysCfb_GetFbPtr(s32 idx);
|
||||
void* SysCfb_GetFbEnd(void);
|
||||
|
||||
#endif
|
||||
55
include/transition_circle.h
Normal file
55
include/transition_circle.h
Normal file
@@ -0,0 +1,55 @@
|
||||
#ifndef TRANSITION_CIRCLE_H
|
||||
#define TRANSITION_CIRCLE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "color.h"
|
||||
|
||||
typedef enum TransitionCircleAppearance {
|
||||
/* 0 */ TCA_NORMAL,
|
||||
/* 1 */ TCA_WAVE,
|
||||
/* 2 */ TCA_RIPPLE,
|
||||
/* 3 */ TCA_STARBURST
|
||||
} TransitionCircleAppearance;
|
||||
|
||||
typedef enum TransitionCircleColor {
|
||||
/* 0 */ TCC_BLACK,
|
||||
/* 1 */ TCC_WHITE,
|
||||
/* 2 */ TCC_GRAY,
|
||||
/* 3 */ TCC_SPECIAL // color varies depending on appearance. unused and appears broken
|
||||
} TransitionCircleColor;
|
||||
|
||||
typedef enum TransitionCircleSpeed {
|
||||
/* 0 */ TCS_FAST,
|
||||
/* 1 */ TCS_SLOW
|
||||
} TransitionCircleSpeed;
|
||||
|
||||
typedef struct TransitionCircle {
|
||||
/* 0x000 */ Color_RGBA8_u32 color;
|
||||
/* 0x004 */ Color_RGBA8_u32 unkColor;
|
||||
/* 0x008 */ s32 texX;
|
||||
/* 0x00C */ s32 texY;
|
||||
/* 0x010 */ s32 speed;
|
||||
/* 0x014 */ u8 direction;
|
||||
/* 0x015 */ u8 colorType;
|
||||
/* 0x016 */ u8 speedType;
|
||||
/* 0x017 */ u8 appearanceType;
|
||||
/* 0x018 */ u8 isDone;
|
||||
/* 0x019 */ u8 frame;
|
||||
/* 0x01A */ u16 normal;
|
||||
/* 0x020 */ Mtx projection;
|
||||
/* 0x060 */ Mtx lookAt;
|
||||
/* 0x0A0 */ void* texture;
|
||||
/* 0x0A8 */ Mtx modelView[2][3];
|
||||
} TransitionCircle; // size = 0x228
|
||||
|
||||
void TransitionCircle_Start(void* thisx);
|
||||
void* TransitionCircle_Init(void* thisx);
|
||||
void TransitionCircle_Destroy(void* thisx);
|
||||
void TransitionCircle_Update(void* thisx, s32 updateRate);
|
||||
void TransitionCircle_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionCircle_IsDone(void* thisx);
|
||||
void TransitionCircle_SetType(void* thisx, s32 type);
|
||||
void TransitionCircle_SetColor(void* thisx, u32 color);
|
||||
void TransitionCircle_SetUnkColor(void* thisx, u32 color);
|
||||
|
||||
#endif
|
||||
24
include/transition_fade.h
Normal file
24
include/transition_fade.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef TRANSITION_FADE_H
|
||||
#define TRANSITION_FADE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "color.h"
|
||||
|
||||
typedef struct TransitionFade {
|
||||
/* 0x000 */ u8 type;
|
||||
/* 0x001 */ u8 isDone;
|
||||
/* 0x002 */ u8 direction;
|
||||
/* 0x004 */ Color_RGBA8_u32 color;
|
||||
/* 0x008 */ u16 timer;
|
||||
} TransitionFade; // size = 0xC
|
||||
|
||||
void TransitionFade_Start(void* thisx);
|
||||
void* TransitionFade_Init(void* thisx);
|
||||
void TransitionFade_Destroy(void* thisx);
|
||||
void TransitionFade_Update(void* thisx, s32 updateRate);
|
||||
void TransitionFade_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionFade_IsDone(void* thisx);
|
||||
void TransitionFade_SetColor(void* thisx, u32 color);
|
||||
void TransitionFade_SetType(void* thisx, s32 type);
|
||||
|
||||
#endif
|
||||
30
include/transition_tile.h
Normal file
30
include/transition_tile.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef TRANSITION_TILE_H
|
||||
#define TRANSITION_TILE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
typedef struct TransitionTileVtxData {
|
||||
/* 0x0 */ f32 x;
|
||||
/* 0x4 */ f32 y;
|
||||
} TransitionTileVtxData; // size = 0x8
|
||||
|
||||
typedef struct TransitionTile {
|
||||
/* 0x00 */ s32 cols;
|
||||
/* 0x04 */ s32 rows;
|
||||
/* 0x08 */ s32 frame;
|
||||
/* 0x0C */ TransitionTileVtxData* vtxData;
|
||||
/* 0x10 */ Vtx* vtxFrame1;
|
||||
/* 0x14 */ Vtx* vtxFrame2;
|
||||
/* 0x18 */ Mtx projection;
|
||||
/* 0x58 */ Mtx modelView;
|
||||
/* 0x98 */ Mtx unk_98;
|
||||
/* 0xD8 */ Gfx* gfx; // "gfxtbl"
|
||||
/* 0xDC */ u16* zBuffer;
|
||||
} TransitionTile; // size = 0xE0
|
||||
|
||||
TransitionTile* TransitionTile_Init(TransitionTile* this, s32 cols, s32 rows);
|
||||
void TransitionTile_Destroy(TransitionTile* this);
|
||||
void TransitionTile_Update(TransitionTile* this);
|
||||
void TransitionTile_Draw(TransitionTile* this, Gfx** gfxP);
|
||||
|
||||
#endif
|
||||
27
include/transition_triforce.h
Normal file
27
include/transition_triforce.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef TRANSITION_TRIFORCE_H
|
||||
#define TRANSITION_TRIFORCE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "color.h"
|
||||
|
||||
typedef struct TransitionTriforce {
|
||||
/* 0x000 */ Color_RGBA8_u32 color;
|
||||
/* 0x004 */ f32 transPos;
|
||||
/* 0x008 */ f32 step;
|
||||
/* 0x00C */ s32 state;
|
||||
/* 0x010 */ s32 type;
|
||||
/* 0x018 */ Mtx projection;
|
||||
/* 0x058 */ s32 frame;
|
||||
/* 0x060 */ Mtx modelView[2][3];
|
||||
} TransitionTriforce; // size = 0x1E0
|
||||
|
||||
void TransitionTriforce_Start(void* thisx);
|
||||
void* TransitionTriforce_Init(void* thisx);
|
||||
void TransitionTriforce_Destroy(void* thisx);
|
||||
void TransitionTriforce_Update(void* thisx, s32 updateRate);
|
||||
void TransitionTriforce_SetColor(void* thisx, u32 color);
|
||||
void TransitionTriforce_SetType(void* thisx, s32 type);
|
||||
void TransitionTriforce_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionTriforce_IsDone(void* thisx);
|
||||
|
||||
#endif
|
||||
30
include/transition_wipe.h
Normal file
30
include/transition_wipe.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef TRANSITION_WIPE_H
|
||||
#define TRANSITION_WIPE_H
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "color.h"
|
||||
|
||||
typedef struct TransitionWipe {
|
||||
/* 0x000 */ Color_RGBA8_u32 color;
|
||||
/* 0x004 */ Color_RGBA8_u32 unkColor;
|
||||
/* 0x008 */ u8 direction;
|
||||
/* 0x009 */ u8 frame;
|
||||
/* 0x00A */ u8 isDone;
|
||||
/* 0x00C */ u16 texX;
|
||||
/* 0x00E */ u16 texY;
|
||||
/* 0x010 */ u16 normal;
|
||||
/* 0x018 */ Mtx projection;
|
||||
/* 0x058 */ Mtx lookAt;
|
||||
/* 0x098 */ Mtx modelView[2][3];
|
||||
} TransitionWipe; // size = 0x218
|
||||
|
||||
void TransitionWipe_Start(void* thisx);
|
||||
void* TransitionWipe_Init(void* thisx);
|
||||
void TransitionWipe_Destroy(void* thisx);
|
||||
void TransitionWipe_Update(void* thisx, s32 updateRate);
|
||||
void TransitionWipe_Draw(void* thisx, Gfx** gfxP);
|
||||
s32 TransitionWipe_IsDone(void* thisx);
|
||||
void TransitionWipe_SetType(void* thisx, s32 type);
|
||||
void TransitionWipe_SetColor(void* thisx, u32 color);
|
||||
|
||||
#endif
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user