1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-05-09 18:43:45 +00:00
This commit is contained in:
fig02 2025-04-28 10:40:35 -04:00
parent 6d9889d4a9
commit 450aff8542
93 changed files with 98 additions and 96 deletions

View file

@ -5,7 +5,7 @@
#include "romfile.h"
#include "actor_profile.h"
#include "animation.h"
#include "z64math.h"
#include "z_math.h"
#include "collision_check.h"
#define ACTOR_NUMBER_MAX 200

View file

@ -4,7 +4,7 @@
#include "avoid_ub.h"
#include "ultra64.h"
#include "dma.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;
struct Actor;

View file

@ -2,7 +2,7 @@
#define ANIMATION_LEGACY_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct LegacyLimb {
/* 0x000 */ Gfx* dList;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "sequence.h"
#include "z64math.h"
#include "z_math.h"
struct GfxPrint;

View file

@ -2,7 +2,7 @@
#define BGCHECK_H
#include "ultra64/ultratypes.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;
struct Actor;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "cutscene.h"
#include "z64math.h"
#include "z_math.h"
struct CollisionContext;
struct View;

View file

@ -2,7 +2,7 @@
#define COLLISION_CHECK_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
#define COLLISION_CHECK_AT_MAX 50
#define COLLISION_CHECK_AC_MAX 60

View file

@ -2,7 +2,7 @@
#define CURVE_H
#include "ultra64/ultratypes.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;
struct Actor;

View file

@ -2,7 +2,7 @@
#define CUTSCENE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;

View file

@ -2,7 +2,7 @@
#define CUTSCENE_SPLINE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
union CutsceneCameraPoint;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "cutscene.h"
#include "z64math.h"
#include "z_math.h"
struct Camera;

View file

@ -2,7 +2,7 @@
#define DEBUG_DISPLAY_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
#include "color.h"
struct GraphicsContext;

View file

@ -4,7 +4,7 @@
#include "color.h"
#include "romfile.h"
#include "light.h"
#include "z64math.h"
#include "z_math.h"
struct Actor;
struct GraphicsContext;

View file

@ -1,7 +1,7 @@
#ifndef ENVIRONMENT_H_
#define ENVIRONMENT_H_
#include "z64math.h"
#include "z_math.h"
#include "light.h"
#include "dma.h"

View file

@ -4,7 +4,7 @@
#include "ultra64.h"
#include "environment.h"
#include "game.h"
#include "z64message.h"
#include "message.h"
#include "z64skybox.h"
#include "z64sram.h"
#include "z64view.h"

View file

@ -2,7 +2,7 @@
#define HORSE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;
struct Actor;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "ultra64/gbi.h"
#include "z64math.h"
#include "z_math.h"
#include "color.h"
struct GraphicsContext;

View file

@ -1,5 +1,5 @@
#ifndef Z64MAP_MARK_H
#define Z64MAP_MARK_H
#ifndef MAP_MARK_H
#define MAP_MARK_H
#include "ultra64.h"

View file

@ -1,5 +1,5 @@
#ifndef Z64MESSAGE_H
#define Z64MESSAGE_H
#ifndef MESSAGE_H
#define MESSAGE_H
#include "z64view.h"
#include "versions.h"

View file

@ -5,7 +5,7 @@
#include "ultra64/leo.h"
#include "z64pause.h"
#include "z64scene.h"
#include "z64map_mark.h"
#include "map_mark.h"
#include "versions.h"
struct Font;

View file

@ -2,7 +2,7 @@
#define QUAKE_H
#include "camera.h"
#include "z64math.h"
#include "z_math.h"
typedef struct ShakeInfo {
/* 0x00 */ Vec3f atOffset;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "versions.h"
#include "z64math.h"
#include "z_math.h"
#include "libc/assert.h"
#define MAX_CHANNELS_PER_BANK 3

View file

@ -2,7 +2,7 @@
#define SYS_MATH3D_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;

View file

@ -1,7 +1,7 @@
#ifndef SYS_MATRIX_H
#define SYS_MATRIX_H
#include "z64math.h"
#include "z_math.h"
struct GraphicsContext;
struct GameState;

View file

@ -1,7 +1,7 @@
#ifndef Z64OLIB_H
#define Z64OLIB_H
#include "z64math.h"
#include "z_math.h"
f32 OLib_Vec3fDist(Vec3f* a, Vec3f* b);
f32 OLib_Vec3fDistXZ(Vec3f* a, Vec3f* b);

View file

@ -2,7 +2,7 @@
#define Z64PATH_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;
struct Actor;

View file

@ -2,7 +2,7 @@
#define Z64PAUSE_H
#include "animation.h"
#include "z64message.h"
#include "message.h"
#include "z64view.h"
struct OcarinaStaff;

View file

@ -15,7 +15,7 @@
#include "game_over.h"
#include "interface.h"
#include "light.h"
#include "z64message.h"
#include "message.h"
#include "z64object.h"
#include "z64pause.h"
#include "z64room.h"

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "dma.h"
#include "z64math.h"
#include "z_math.h"
struct Input;
struct PlayState;

View file

@ -4,7 +4,7 @@
#include "ultra64.h"
#include "versions.h"
#include "inventory.h"
#include "z64math.h"
#include "z_math.h"
typedef enum ZTargetSetting {
/* 0 */ Z_TARGET_SETTING_SWITCH,

View file

@ -6,7 +6,7 @@
#include "bgcheck.h"
#include "environment.h"
#include "light.h"
#include "z64math.h"
#include "z_math.h"
#include "z64path.h"
#include "command_macros_base.h"

View file

@ -2,7 +2,7 @@
#define Z64SFX_SOURCE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct PlayState;

View file

@ -2,7 +2,7 @@
#define Z64SKIN_MATRIX_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct GraphicsContext;

View file

@ -4,7 +4,7 @@
#include "ultra64/ultratypes.h"
#include "ultra64/gbi.h"
#include "z64math.h"
#include "z_math.h"
#include "dma.h" // for RomFile
struct GameState;

View file

@ -3,7 +3,7 @@
#include "avoid_ub.h"
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct GraphicsContext;

View file

@ -3,7 +3,7 @@
#include "libc/stddef.h"
#include "libu64/pad.h"
#include "z64math.h"
#include "z_math.h"
#include "color.h"
void Lib_MemSet(u8* dest, size_t len, u8 val);

View file

@ -1,5 +1,7 @@
#ifndef Z64MATH_H
#define Z64MATH_H
#ifndef Z_MATH_H
#define Z_MATH_H
// This file has a z_ prefix to indicate that it is the game-side math header, not libc
#include "math.h"
#include "ultra64.h"

View file

@ -5,7 +5,7 @@
#include "translation.h"
#include "ultra64.h"
#include "z_lib.h"
#include "z64math.h"
#include "z_math.h"
#pragma increment_block_number "gc-eu:77 gc-eu-mq:77 gc-jp:77 gc-jp-ce:77 gc-jp-mq:77 gc-us:77 gc-us-mq:77 ique-cn:67" \
"ntsc-1.0:64 ntsc-1.1:64 ntsc-1.2:64 pal-1.0:64 pal-1.1:64"

View file

@ -1,6 +1,6 @@
#include "array_count.h"
#include "sys_math.h"
#include "z64math.h"
#include "z_math.h"
static u16 sAtan2Tbl[] = {
0x0000, 0x000A, 0x0014, 0x001F, 0x0029, 0x0033, 0x003D, 0x0047, 0x0051, 0x005C, 0x0066, 0x0070, 0x007A, 0x0084,

View file

@ -1,5 +1,5 @@
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
#include "camera.h"
#include "cutscene_spline.h"

View file

@ -16,7 +16,7 @@
#include "libu64/debug.h"
#include "gfx.h"
#include "printf.h"
#include "z64math.h"
#include "z_math.h"
#include "z64transition_instances.h"
// color framebuffer

View file

@ -6,7 +6,7 @@
#include "versions.h"
#include "dma.h"
#include "font.h"
#include "z64message.h"
#include "message.h"
/**
* Loads a texture from kanji for the requested `character` into the character texture buffer

View file

@ -12,7 +12,7 @@
#include "sys_matrix.h"
#include "terminal.h"
#include "translation.h"
#include "z64map_mark.h"
#include "map_mark.h"
#include "z64play.h"
#include "z64player.h"
#include "z64save.h"

View file

@ -10,7 +10,7 @@
#include "segment_symbols.h"
#include "terminal.h"
#include "translation.h"
#include "z64map_mark.h"
#include "map_mark.h"
#include "z64play.h"
#include "z64save.h"

View file

@ -1,4 +1,4 @@
#include "z64math.h"
#include "z_math.h"
#include "libc64/math64.h"
#include "z64olib.h"
#include "z_lib.h"

View file

@ -13,7 +13,7 @@
*/
#include "rumble.h"
#include "padmgr.h"
#include "z64math.h"
#include "z_math.h"
static s32 sUnused[4];
RumbleMgr sRumbleMgr;

View file

@ -1,7 +1,7 @@
#include "gfx.h"
#include "segmented_address.h"
#include "sys_matrix.h"
#include "z64math.h"
#include "z_math.h"
#include "z64play.h"
#include "z64skin.h"
#include "z64skin_matrix.h"

View file

@ -11,7 +11,7 @@
#include "audio.h"
#include "game.h"
#include "interface.h"
#include "z64message.h"
#include "message.h"
#include "z64ocarina.h"
#include "z64save.h"
#include "z64scene.h"

View file

@ -1,5 +1,5 @@
#include "libc64/math64.h"
#include "z64math.h"
#include "z_math.h"
#if !PLATFORM_N64
s32 gUseAtanContFrac;

View file

@ -42,7 +42,7 @@
* @note Original name: qrand.c
*/
#include "libc64/qrand.h"
#include "z64math.h"
#include "z_math.h"
#define RAND_MULTIPLIER 1664525
#define RAND_INCREMENT 1013904223

View file

@ -1,5 +1,5 @@
#include "ultra64.h"
#include "z64math.h" // TODO: libultra should not have access to game-side headers
#include "z_math.h" // TODO: libultra should not have access to game-side headers
static const du P[] = {
{ 0x3FF00000, 0x00000000 }, { 0xBFC55554, 0xBC83656D }, { 0x3F8110ED, 0x3804C2A0 },

View file

@ -1,5 +1,5 @@
#include "ultra64.h"
#include "z64math.h" // TODO: libultra should not have access to game-side headers
#include "z_math.h" // TODO: libultra should not have access to game-side headers
void guLookAtF(f32 mf[4][4], f32 xEye, f32 yEye, f32 zEye, f32 xAt, f32 yAt, f32 zAt, f32 xUp, f32 yUp, f32 zUp) {
f32 length;

View file

@ -1,5 +1,5 @@
#include "ultra64.h"
#include "z64math.h" // TODO: libultra should not have access to game-side headers
#include "z_math.h" // TODO: libultra should not have access to game-side headers
void guNormalize(f32* x, f32* y, f32* z) {
f32 m = 1 / sqrtf(SQ(*x) + SQ(*y) + SQ(*z));

View file

@ -1,5 +1,5 @@
#include "ultra64.h"
#include "z64math.h" // TODO: libultra should not have access to game-side headers
#include "z_math.h" // TODO: libultra should not have access to game-side headers
static const du P[] = {
{ 0x3FF00000, 0x00000000 }, { 0xBFC55554, 0xBC83656D }, { 0x3F8110ED, 0x3804C2A0 },

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "actor.h"
#include "z64message.h"
#include "message.h"
struct EnMag;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsBlastParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_BOMB_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsBombInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_BOMB2_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsBomb2InitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_BUBBLE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsBubbleInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_D_FIRE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDFireInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDeadDbInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDeadDdInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_DEAD_DS_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDeadDsInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_DEAD_SOUND_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDeadSoundInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDtBubbleInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsDustInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_EN_FIRE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsEnFireInitParams {
/* 0x00 */ struct Actor* actor;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsEnIceInitParams {
/* 0x00 */ struct Actor* actor;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_EXTRA_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsExtraInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_FCIRCLE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsFcircleInitParams {
/* 0x00 */ struct Actor* actor;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_FHGFLASH_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
struct Actor;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsFireTailInitParams {
/* 0x00 */ struct Actor* actor;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_G_FIRE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsGFireInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_G_MAGMA_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsGMagmaInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsGMagma2InitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_G_RIPPLE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsGRippleInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsGSpkInitParams {
/* 0x00 */ struct Actor* actor;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsGSplashInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_HAHEN_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsHahenInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_HITMARK_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsHitMarkInitParams {
/* 0x00 */ s32 type;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_ICE_PIECE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsIcePieceInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_ICE_SMOKE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsIceSmokeInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_K_FIRE_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsKFireInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_KAKERA_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsKakeraInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsKiraKiraInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -3,7 +3,7 @@
#include "ultra64.h"
#include "color.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsLightningInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_SIBUKI_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsSibukiInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_SIBUKI2_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsSibuki2InitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_SOLDERSRCHBALL_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsSolderSrchBallInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_STICK_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsStickInitParams {
/* 0x00 */ Vec3f pos;

View file

@ -2,7 +2,7 @@
#define Z_EFF_SS_STONE1_H
#include "ultra64.h"
#include "z64math.h"
#include "z_math.h"
typedef struct EffectSsStone1InitParams {
/* 0x00 */ Vec3f pos;

View file

@ -1,4 +1,4 @@
#include "z64map_mark.h"
#include "map_mark.h"
static MapMarkData sMapMarkDekuTree[] = {
// Deku Tree minimap 0

View file

@ -1,4 +1,4 @@
#include "z64map_mark.h"
#include "map_mark.h"
static MapMarkData sMapMarkDekuTree[] = {
// Deku Tree minimap 0