mirror of
https://github.com/zeldaret/oot
synced 2026-09-10 12:05:20 -04:00
Apply includes style to src/code/z_[r-z].*.c (#2824)
* Apply includes style to `src/code/z_[r-z].c` * fixup
This commit is contained in:
+6
-1
@@ -1,11 +1,16 @@
|
||||
#include "buffers.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
|
||||
#include "buffers.h"
|
||||
#include "gfxalloc.h"
|
||||
#include "letterbox.h"
|
||||
#include "main.h"
|
||||
#include "regs.h"
|
||||
#include "play_state.h"
|
||||
#include "room.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
|
||||
Gfx sSetupDL[SETUPDL_MAX][6] = {
|
||||
{
|
||||
|
||||
+20
-4
@@ -1,8 +1,15 @@
|
||||
#include "libu64/debug.h"
|
||||
#include "ultra64/gs2dex.h"
|
||||
#include "room.h"
|
||||
|
||||
#include "versions.h"
|
||||
#include "actor.h"
|
||||
#include "alignment.h"
|
||||
#include "array_count.h"
|
||||
#include "bgcheck.h"
|
||||
#include "buffers.h"
|
||||
#include "camera.h"
|
||||
#include "dma.h"
|
||||
#include "fault.h"
|
||||
#include "game.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "jpeg.h"
|
||||
@@ -18,13 +25,22 @@
|
||||
#include "sys_ucode.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "versions.h"
|
||||
#include "audio.h"
|
||||
#include "play_state.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "save.h"
|
||||
#include "scene.h"
|
||||
#include "skin_matrix.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "libu64/debug.h"
|
||||
#include "libu64/pad.h"
|
||||
#include "ultra64.h"
|
||||
#include "ultra64/gs2dex.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
Vec3f D_801270A0 = { 0.0f, 0.0f, 0.0f };
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
#include "padmgr.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <math.h>
|
||||
#include <stddef.h>
|
||||
|
||||
static s32 sUnused[4];
|
||||
RumbleMgr sRumbleMgr;
|
||||
|
||||
|
||||
+14
-5
@@ -1,11 +1,20 @@
|
||||
#include "sample_state.h"
|
||||
|
||||
#include "controller.h"
|
||||
#include "dma.h"
|
||||
#include "game.h"
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "controller.h"
|
||||
#include "regs.h"
|
||||
#include "sample_state.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "dma.h"
|
||||
#include "play_state.h"
|
||||
#include "regs.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "view.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
void Sample_HandleStateChange(SampleState* this) {
|
||||
if (CHECK_BTN_ALL(this->state.input[0].press.button, BTN_START)) {
|
||||
|
||||
+29
-12
@@ -1,20 +1,37 @@
|
||||
#include "object.h"
|
||||
#include "scene.h"
|
||||
|
||||
#include "versions.h"
|
||||
#include "actor.h"
|
||||
#include "alignment.h"
|
||||
#include "array_count.h"
|
||||
#include "avoid_ub.h"
|
||||
#include "printf.h"
|
||||
#include "regs.h"
|
||||
#include "romfile.h"
|
||||
#include "seqcmd.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "segmented_address.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "versions.h"
|
||||
#include "z_actor_dlftbls.h"
|
||||
#include "z_lib.h"
|
||||
#include "bgcheck.h"
|
||||
#include "dma.h"
|
||||
#include "environment.h"
|
||||
#include "game.h"
|
||||
#include "inventory.h"
|
||||
#include "light.h"
|
||||
#include "play_state.h"
|
||||
#include "player.h"
|
||||
#include "printf.h"
|
||||
#include "regs.h"
|
||||
#include "save.h"
|
||||
#include "scene.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "segmented_address.h"
|
||||
#include "seqcmd.h"
|
||||
#include "sequence.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "z_actor_dlftbls.h"
|
||||
#include "z_lib.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
SceneCmdHandlerFunc sSceneCmdHandlers[SCENE_CMD_ID_MAX];
|
||||
RomFile sNaviQuestHintFiles[];
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
#include "sfx_source.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "sfx.h"
|
||||
#include "play_state.h"
|
||||
#include "sfx.h"
|
||||
#include "skin_matrix.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "ultra64/ultratypes.h"
|
||||
|
||||
void SfxSource_InitAll(PlayState* play) {
|
||||
SfxSource* sources = &play->sfxSources[0];
|
||||
|
||||
+16
-5
@@ -1,18 +1,29 @@
|
||||
#include "libu64/debug.h"
|
||||
#include "animation.h"
|
||||
#include "animation_legacy.h"
|
||||
|
||||
#include "actor.h"
|
||||
#include "alignment.h"
|
||||
#include "avoid_ub.h"
|
||||
#include "dma.h"
|
||||
#include "gfx.h"
|
||||
#include "play_state.h"
|
||||
#include "printf.h"
|
||||
#include "regs.h"
|
||||
#include "segmented_address.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "segmented_address.h"
|
||||
#include "sys_matrix.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "z_lib.h"
|
||||
#include "z_math.h"
|
||||
#include "zelda_arena.h"
|
||||
#include "animation.h"
|
||||
#include "animation_legacy.h"
|
||||
#include "play_state.h"
|
||||
|
||||
#include "libu64/debug.h"
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define ANIM_INTERP 1
|
||||
|
||||
|
||||
+9
-3
@@ -1,10 +1,16 @@
|
||||
#include "skin.h"
|
||||
|
||||
#include "actor.h"
|
||||
#include "gfx.h"
|
||||
#include "play_state.h"
|
||||
#include "segmented_address.h"
|
||||
#include "skin_matrix.h"
|
||||
#include "sys_matrix.h"
|
||||
#include "z_math.h"
|
||||
#include "play_state.h"
|
||||
#include "skin.h"
|
||||
#include "skin_matrix.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
MtxF gSkinLimbMatrices[60]; // holds matrices for each limb of the skeleton currently being drawn
|
||||
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "z_lib.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <math.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// clang-format off
|
||||
MtxF sMtxFClear = {
|
||||
|
||||
+14
-7
@@ -1,21 +1,28 @@
|
||||
#include "sram.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "file_select_state.h"
|
||||
#include "controller.h"
|
||||
#include "memory_utils.h"
|
||||
#include "printf.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "versions.h"
|
||||
#include "array_count.h"
|
||||
#include "audio.h"
|
||||
#include "controller.h"
|
||||
#include "file_select_state.h"
|
||||
#include "game.h"
|
||||
#include "interface.h"
|
||||
#include "inventory.h"
|
||||
#include "item.h"
|
||||
#include "memory_utils.h"
|
||||
#include "message.h"
|
||||
#include "ocarina.h"
|
||||
#include "printf.h"
|
||||
#include "save.h"
|
||||
#include "scene.h"
|
||||
#include "ss_sram.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#define SLOT_SIZE (sizeof(SaveContext) + 0x28)
|
||||
#define CHECKSUM_SIZE (sizeof(Save) / 2)
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
#include "ultra64.h"
|
||||
#include "printf.h"
|
||||
#include "ss_sram.h"
|
||||
|
||||
#include "printf.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct SsSramContext {
|
||||
/* 0x00 */ OSPiHandle piHandle;
|
||||
/* 0x74 */ OSIoMesg ioMesg;
|
||||
|
||||
+8
-2
@@ -1,7 +1,5 @@
|
||||
#include "view.h"
|
||||
|
||||
#include "libc64/malloc.h"
|
||||
#include "libu64/debug.h"
|
||||
#include "avoid_ub.h"
|
||||
#include "gfx.h"
|
||||
#include "letterbox.h"
|
||||
@@ -11,6 +9,14 @@
|
||||
#include "sys_matrix.h"
|
||||
#include "terminal.h"
|
||||
#include "translation.h"
|
||||
#include "z_math.h"
|
||||
|
||||
#include "libc64/malloc.h"
|
||||
#include "libu64/debug.h"
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
vu32 sLogOnNextViewInit = true;
|
||||
|
||||
|
||||
+7
-3
@@ -1,13 +1,17 @@
|
||||
#include "vi_mode.h"
|
||||
|
||||
#include "libu64/debug.h"
|
||||
#include "ultra64/viint.h"
|
||||
#include "versions.h"
|
||||
#include "controller.h"
|
||||
#include "gfx.h"
|
||||
#include "main.h"
|
||||
#include "printf.h"
|
||||
#include "regs.h"
|
||||
#include "versions.h"
|
||||
|
||||
#include "libu64/debug.h"
|
||||
#include "libu64/pad.h"
|
||||
#include "ultra64.h"
|
||||
#include "ultra64/viint.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
void ViMode_LogPrint(OSViMode* osViMode) {
|
||||
LOG_ADDRESS("osvimodep", osViMode, "../z_vimode.c", 87);
|
||||
|
||||
+6
-2
@@ -6,10 +6,14 @@
|
||||
* usually highlight silhouettes.
|
||||
*/
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "gfx.h"
|
||||
#include "vis.h"
|
||||
|
||||
#include "color.h"
|
||||
#include "gfx.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
Gfx sVisCvgModulateBlendColorDL[] = {
|
||||
gsDPSetOtherMode(G_AD_PATTERN | G_CD_MAGICSQ | G_CK_NONE | G_TC_CONV | G_TF_POINT | G_TT_NONE | G_TL_TILE |
|
||||
G_TD_CLAMP | G_TP_NONE | G_CYC_1CYCLE | G_PM_NPRIMITIVE,
|
||||
|
||||
+10
-3
@@ -11,12 +11,19 @@
|
||||
* See the rest of the file for specifics.
|
||||
*/
|
||||
|
||||
#include "libc64/malloc.h"
|
||||
#include "libu64/debug.h"
|
||||
#include "vis.h"
|
||||
|
||||
#include "attributes.h"
|
||||
#include "color.h"
|
||||
#include "gfx.h"
|
||||
#include "gfxalloc.h"
|
||||
#include "vis.h"
|
||||
|
||||
#include "libc64/malloc.h"
|
||||
#include "libu64/debug.h"
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
|
||||
// Height of the fragments the color frame buffer (CFB) is split into.
|
||||
// It is the maximum amount of lines such that all rgba16 SCREEN_WIDTH-long lines fit into
|
||||
|
||||
@@ -37,10 +37,14 @@
|
||||
* - blue: like green but even higher frequency
|
||||
*/
|
||||
|
||||
#include "ultra64.h"
|
||||
#include "gfx.h"
|
||||
#include "vis.h"
|
||||
|
||||
#include "color.h"
|
||||
#include "gfx.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
// z-buffer
|
||||
extern u16 D_0E000000[];
|
||||
|
||||
|
||||
+9
-4
@@ -1,14 +1,19 @@
|
||||
#include "skybox.h"
|
||||
|
||||
#include "array_count.h"
|
||||
#include "printf.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "terminal.h"
|
||||
#include "ultra64.h"
|
||||
#include "dma.h"
|
||||
#include "environment.h"
|
||||
#include "game.h"
|
||||
#include "play_state.h"
|
||||
#include "printf.h"
|
||||
#include "save.h"
|
||||
#include "segment_symbols.h"
|
||||
#include "terminal.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct SkyboxFaceParams {
|
||||
/* 0x000 */ s32 xStart;
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
#include "skybox.h"
|
||||
|
||||
#include "gfx.h"
|
||||
#include "gfx_setupdl.h"
|
||||
#include "sys_matrix.h"
|
||||
#include "skybox.h"
|
||||
|
||||
#include "ultra64.h"
|
||||
|
||||
Mtx* sSkyboxDrawMatrix;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user