Replace header ifdef guards with #pragma once

This commit is contained in:
Arceveti committed 2021-09-25 11:08:11 -07:00
1 parent 0649427337
commit 3a6c577a41
367 files changed
+651 -1765

No files matched your search

+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_DATA_H
#define AUDIO_DATA_H
#pragma once
#include <PR/ultratypes.h>
@@ -161,5 +160,3 @@ extern u16 D_SH_80315EF4;
extern u16 D_SH_80315EF8;
extern u16 D_SH_80315EFC;
#endif
#endif // AUDIO_DATA_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_EFFECTS_H
#define AUDIO_EFFECTS_H
#pragma once
#include <PR/ultratypes.h>
@@ -42,5 +41,3 @@ f32 adsr_update(struct AdsrState *adsr);
#else
s32 adsr_update(struct AdsrState *adsr);
#endif
#endif // AUDIO_EFFECTS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_EXTERNAL_H
#define AUDIO_EXTERNAL_H
#pragma once
#include <PR/ultratypes.h>
@@ -65,5 +64,3 @@ void sound_reset(u8 presetId);
void audio_set_sound_mode(u8 arg0);
void audio_init(void); // in load.c
#endif // AUDIO_EXTERNAL_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_HEAP_H
#define AUDIO_HEAP_H
#pragma once
#include <PR/ultratypes.h>
@@ -140,5 +139,3 @@ u8 *func_sh_802f1d90(u32 size, s32 bank, u8 *arg2, s8 medium);
void *unk_pool1_lookup(s32 poolIdx, s32 id);
void *unk_pool1_alloc(s32 poolIndex, s32 arg1, u32 size);
#endif
#endif // AUDIO_HEAP_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_INTERNAL_H
#define AUDIO_INTERNAL_H
#pragma once
#include <ultra64.h>
@@ -897,5 +896,3 @@ struct UnkStruct80343D00 {
extern s32 D_SH_80343CF0;
extern struct UnkStruct80343D00 D_SH_80343D00;
#endif
#endif // AUDIO_INTERNAL_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_LOAD_H
#define AUDIO_LOAD_H
#pragma once
#include <PR/ultratypes.h>
@@ -111,5 +110,3 @@ void func_sh_802f30f4(s32 arg0, s32 arg1, s32 arg2, OSMesgQueue *arg3);
void func_sh_802f3288(s32 idx);
#endif
#endif // AUDIO_LOAD_H
+1 -5
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_PLAYBACK_H
#define AUDIO_PLAYBACK_H
#pragma once
#include <PR/ultratypes.h>
@@ -45,6 +44,3 @@ void note_set_frequency(struct Note *note, f32 frequency);
void note_enable(struct Note *note);
void note_disable(struct Note *note);
#endif
#endif // AUDIO_PLAYBACK_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_SEQPLAYER_H
#define AUDIO_SEQPLAYER_H
#pragma once
#include <PR/ultratypes.h>
@@ -14,5 +13,3 @@ void *audio_list_pop_back(struct AudioListItem *list);
void process_sequences(s32 iterationsRemaining);
void init_sequence_player(u32 player);
void init_sequence_players(void);
#endif // AUDIO_SEQPLAYER_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AUDIO_SYNTHESIS_H
#define AUDIO_SYNTHESIS_H
#pragma once
#include "internal.h"
@@ -127,5 +126,3 @@ void note_set_frequency(struct Note *note, f32 frequency);
void note_enable(struct Note *note);
void note_disable(struct Note *note);
#endif
#endif // AUDIO_SYNTHESIS_H
+1 -4
View File
@@ -1,8 +1,5 @@
#ifndef SLIDEC_H
#define SLIDEC_H
#pragma once
void slidstart(unsigned char*, unsigned char *);
void decompress(void *mio0, void *dest);
#endif // SLIDEC_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef BUFFERS_H
#define BUFFERS_H
#pragma once
#include <PR/ultratypes.h>
#include <hvqm2dec.h>
@@ -34,5 +33,3 @@ extern u64 hvq_yieldbuf[]; /* RSP task yield buffer */
extern HVQM2Info hvq_spfifo[]; /* Data area for HVQM2 microcode */
extern u16 hvqwork[]; /* Work buffer for HVQM2 decoder */
extern u8 hvqbuf[]; /* Buffer for video records (HVQM2) */
#endif // BUFFERS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef FRAMEBUFFERS_H
#define FRAMEBUFFERS_H
#pragma once
#include <PR/ultratypes.h>
@@ -12,5 +11,3 @@ extern u16 gFrameBuffers[3][SCREEN_WIDTH * SCREEN_HEIGHT];
#define gFrameBuffer0 gFrameBuffers[0]
#define gFrameBuffer1 gFrameBuffers[1]
#define gFrameBuffer2 gFrameBuffers[2]
#endif // FRAMEBUFFERS_H
+1 -4
View File
@@ -1,8 +1,5 @@
#ifndef GFX_OUTPUT_BUFFER_H
#define GFX_OUTPUT_BUFFER_H
#pragma once
#include <PR/ultratypes.h>
extern u64 gGfxSPTaskOutputBuffer[0x2fc0];
#endif // GFX_OUTPUT_BUFFER_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef ZBUFFER_H
#define ZBUFFER_H
#pragma once
#include <PR/ultratypes.h>
@@ -7,5 +6,3 @@
#include "macros.h"
extern u16 gZBuffer[SCREEN_WIDTH * SCREEN_HEIGHT];
#endif // ZBUFFER_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef BEHAVIOR_SCRIPT_H
#define BEHAVIOR_SCRIPT_H
#pragma once
#include <PR/ultratypes.h>
@@ -24,5 +23,3 @@ float random_float(void);
s32 random_sign(void);
void cur_obj_update(void);
#endif // BEHAVIOR_SCRIPT_H
+1 -5
View File
@@ -1,5 +1,4 @@
#ifndef __EXTENDED_BOUNDS_H__
#define __EXTENDED_BOUNDS_H__
#pragma once
/*
Better Extended Bounds by anonymous_moose
@@ -75,6 +74,3 @@ STATIC_ASSERT(LEVEL_BOUNDARY_MAX != 0, "You must set a valid extended bounds mod
#define NOT_ENOUGH_ROOM_FOR_SURFACES (1 << 0)
#define NOT_ENOUGH_ROOM_FOR_NODES (1 << 1)
#endif // __EXTENDED_BOUNDS_H__
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GEO_LAYOUT_H
#define GEO_LAYOUT_H
#pragma once
#include <PR/ultratypes.h>
@@ -77,5 +76,3 @@ void geo_layout_cmd_node_culling_radius(void);
void geo_layout_cmd_bone(void);
struct GraphNode *process_geo_layout(struct AllocOnlyPool *pool, void *segptr);
#endif // GEO_LAYOUT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GRAPH_NODE_H
#define GRAPH_NODE_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -455,5 +454,3 @@ s16 *read_vec3s_to_vec3f(Vec3f, s16 *src);
s16 *read_vec3s(Vec3s dst, s16 *src);
s16 *read_vec3s_angle(Vec3s dst, s16 *src);
void register_scene_graph_node(struct GraphNode *graphNode);
#endif // GRAPH_NODE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LEVEL_SCRIPT_H
#define LEVEL_SCRIPT_H
#pragma once
#include <PR/ultratypes.h>
@@ -8,5 +7,3 @@ struct LevelCommand;
extern u8 level_script_entry[];
struct LevelCommand *level_script_execute(struct LevelCommand *cmd);
#endif // LEVEL_SCRIPT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MATH_UTIL_H
#define MATH_UTIL_H
#pragma once
#include <PR/ultratypes.h>
@@ -383,5 +382,3 @@ void spline_get_weights(Vec4f result, f32 t, UNUSED s32 c);
void anim_spline_init(Vec4s *keyFrames);
s32 anim_spline_poll(Vec3f result);
extern void find_surface_on_ray(Vec3f orig, Vec3f dir, struct Surface **hit_surface, Vec3f hit_pos, s32 flags);
#endif // MATH_UTIL_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SURFACE_COLLISION_H
#define SURFACE_COLLISION_H
#pragma once
#include <PR/ultratypes.h>
@@ -39,5 +38,3 @@ s32 find_water_level_and_floor(s32 x, s32 z, struct Surface **pfloor);
s32 find_water_level(s32 x, s32 z);
s32 find_poison_gas_level(s32 x, s32 z);
void debug_surface_list_info(f32 xPos, f32 zPos);
#endif // SURFACE_COLLISION_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SURFACE_LOAD_H
#define SURFACE_LOAD_H
#pragma once
#include <PR/ultratypes.h>
@@ -40,5 +39,3 @@ u32 get_area_terrain_size(TerrainData *data);
void load_area_terrain(s32 index, TerrainData *data, RoomData *surfaceRooms, s16 *macroObjects);
void clear_dynamic_surfaces(void);
void load_object_collision_model(void);
#endif // SURFACE_LOAD_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef AREA_H
#define AREA_H
#pragma once
#include <PR/ultratypes.h>
@@ -172,5 +171,3 @@ void area_update_objects(void);
void play_transition(s16 transType, s16 time, u8 red, u8 green, u8 blue);
void play_transition_after_delay(s16 transType, s16 time, u8 red, u8 green, u8 blue, s16 delay);
void render_game(void);
#endif // AREA_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef BEHAVIOR_ACTIONS_H
#define BEHAVIOR_ACTIONS_H
#pragma once
void spawn_mist_particles_variable(s32 count, s32 offsetY, f32 size);
void bhv_spawn_star_no_level_exit(u32);
@@ -574,5 +573,3 @@ Gfx *geo_scale_bowser_key(s32 run, struct GraphNode *node, UNUSED f32 mtx[4][4])
// Water splash
extern struct WaterDropletParams gShallowWaterSplashDropletParams;
extern struct WaterDropletParams gShallowWaterWaveDropletParams;
#endif // BEHAVIOR_ACTIONS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CAMERA_H
#define CAMERA_H
#pragma once
#include <PR/ultratypes.h>
@@ -766,5 +765,3 @@ void set_fov_shake_from_point_preset(u8 preset, f32 posX, f32 posY, f32 posZ);
void obj_rotate_towards_point(struct Object *o, Vec3f point, s16 pitchOff, s16 yawOff, s16 pitchDiv, s16 yawDiv);
Gfx *geo_camera_fov(s32 callContext, struct GraphNode *g, UNUSED void *context);
#endif // CAMERA_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef DEBUG_H
#define DEBUG_H
#pragma once
#include <PR/ultratypes.h>
@@ -24,5 +23,3 @@ void stub_debug_5(void);
void try_print_debug_mario_object_info(void);
void try_do_mario_debug_object_spawn(void);
void try_print_debug_mario_level_info(void);
#endif // DEBUG_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef DEBUG_BOX_H
#define DEBUG_BOX_H
#pragma once
#ifdef VISUAL_DEBUG
@@ -37,5 +36,3 @@ void render_debug_boxes(s32 type);
extern void visual_surface_loop(void);
#endif
#endif /* DEBUG_BOX_H */
+1 -4
View File
@@ -1,6 +1,3 @@
#ifndef DEBUG_COURSE_H
#define DEBUG_COURSE_H
#pragma once
void nop_change_course(void);
#endif // DEBUG_COURSE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef ENVFX_BUBBLES_H
#define ENVFX_BUBBLES_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -18,5 +17,3 @@
// Used to communicate from whirlpool behavior to envfx
extern s16 gEnvFxBubbleConfig[10];
Gfx *envfx_update_bubbles(s32 mode, Vec3s marioPos, Vec3s camTo, Vec3s camFrom);
#endif // ENVFX_BUBBLES_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef ENVFX_SNOW_H
#define ENVFX_SNOW_H
#pragma once
#include <PR/ultratypes.h>
#include "types.h"
@@ -37,5 +36,3 @@ extern s16 gSnowParticleCount;
Gfx *envfx_update_particles(s32 snowMode, Vec3s marioPos, Vec3s camTo, Vec3s camFrom);
void orbit_from_positions(Vec3s from, Vec3s to, s16 *radius, s16 *pitch, s16 *yaw);
void rotate_triangle_vertices(Vec3s vertex1, Vec3s vertex2, Vec3s vertex3, s16 pitch, s16 yaw);
#endif // ENVFX_SNOW_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef OBJ_BEHAVIORS_2_NONSTATIC_H
#define OBJ_BEHAVIORS_2_NONSTATIC_H
#pragma once
#include "object_fields.h"
#include "object_constants.h"
@@ -80,5 +79,3 @@ s32 obj_update_standard_actions(f32 scale);
s32 obj_check_attacks(struct ObjectHitbox *hitbox, s32 attackedMarioAction);
s32 obj_move_for_one_second(s32 endAction);
void treat_far_home_as_mario(f32 threshold);
#endif
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GAME_INIT_H
#define GAME_INIT_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -89,5 +88,3 @@ void end_master_display_list(void);
void render_init(void);
void select_gfx_pool(void);
void display_and_vsync(void);
#endif // GAME_INIT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GEO_MISC_H
#define GEO_MISC_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -37,5 +36,3 @@ extern Gfx *geo_exec_cake_end_screen(s32 callContext, struct GraphNode *node, UN
gDPLoadSync((dl)); \
gDPLoadBlock((dl), G_TX_LOADTILE, 0, 0, (width) * (height) - 1, CALC_DXT((width), G_IM_SIZ_16b_BYTES)) \
}
#endif // GEO_MISC_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef HUD_H
#define HUD_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -23,5 +22,3 @@ enum CameraHUDLut {
void set_hud_camera_status(s16 status);
void render_hud(void);
#endif // HUD_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef INGAME_MENU_H
#define INGAME_MENU_H
#pragma once
#include <PR/ultratypes.h>
@@ -163,5 +162,3 @@ void do_cutscene_handler(void);
void render_hud_cannon_reticle(void);
void reset_red_coins_collected(void);
s16 render_menus_and_dialogs(void);
#endif // INGAME_MENU_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef INTERACTION_H
#define INTERACTION_H
#pragma once
#include <PR/ultratypes.h>
@@ -121,5 +120,3 @@ u32 mario_check_object_grab(struct MarioState *m);
u32 get_door_save_file_flag(struct Object *door);
void mario_process_interactions(struct MarioState *m);
void mario_handle_special_floors(struct MarioState *m);
#endif // INTERACTION_H
+1 -4
View File
@@ -1,10 +1,7 @@
#ifndef LEVEL_GEO_H
#define LEVEL_GEO_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
Gfx *geo_envfx_main(s32 callContext, struct GraphNode *node, Mat4 mtxf);
Gfx *geo_skybox_main(s32 callContext, struct GraphNode *node, UNUSED Mat4 *mtx);
#endif // LEVEL_GEO_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LEVEL_UPDATE_H
#define LEVEL_UPDATE_H
#pragma once
#include <PR/ultratypes.h>
@@ -138,5 +137,3 @@ s32 lvl_init_from_save_file(UNUSED s16 arg0, s32 levelNum);
s32 lvl_set_current_level(UNUSED s16 arg0, s32 levelNum);
s32 lvl_play_the_end_screen_sound(UNUSED s16 arg0, UNUSED s32 arg1);
void basic_update(UNUSED s16 *arg);
#endif // LEVEL_UPDATE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MACRO_SPECIAL_OBJECTS_H
#define MACRO_SPECIAL_OBJECTS_H
#pragma once
#include <PR/ultratypes.h>
@@ -17,5 +16,3 @@ void spawn_special_objects(s32 areaIndex, TerrainData **specialObjList);
#ifdef NO_SEGMENTED_MEMORY
u32 get_special_objects_size(s16 *data);
#endif
#endif // MACRO_SPECIAL_OBJECTS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MAIN_H
#define MAIN_H
#pragma once
#include "config.h"
@@ -71,5 +70,3 @@ extern s8 gShowDebugText;
void set_vblank_handler(s32 index, struct VblankHandler *handler, OSMesgQueue *queue, OSMesg *msg);
void dispatch_audio_sptask(struct SPTask *spTask);
void exec_display_list(struct SPTask *spTask);
#endif // MAIN_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MARIO_H
#define MARIO_H
#pragma once
#include <PR/ultratypes.h>
@@ -49,5 +48,3 @@ s32 set_water_plunge_action(struct MarioState *m);
s32 execute_mario_action(UNUSED struct Object *o);
void init_mario(void);
void init_mario_from_save_file(void);
#endif // MARIO_H
+1 -4
View File
@@ -1,10 +1,7 @@
#ifndef MARIO_ACTIONS_AIRBORNE_H
#define MARIO_ACTIONS_AIRBORNE_H
#pragma once
#include <PR/ultratypes.h>
#include "types.h"
s32 mario_execute_airborne_action(struct MarioState *m);
#endif // MARIO_ACTIONS_AIRBORNE_H
+1 -4
View File
@@ -1,10 +1,7 @@
#ifndef MARIO_ACTIONS_AUTOMATIC_H
#define MARIO_ACTIONS_AUTOMATIC_H
#pragma once
#include <PR/ultratypes.h>
#include "types.h"
s32 mario_execute_automatic_action(struct MarioState *m);
#endif // MARIO_ACTIONS_AUTOMATIC_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MARIO_ACTIONS_CUTSCENE_H
#define MARIO_ACTIONS_CUTSCENE_H
#pragma once
#include <PR/ultratypes.h>
@@ -26,5 +25,3 @@ s32 set_mario_npc_dialog(s32 actionArg);
s32 mario_execute_cutscene_action(struct MarioState *m);
extern Vp sEndCutsceneVp;
extern struct CreditsEntry *sDispCreditsEntry;
#endif // MARIO_ACTIONS_CUTSCENE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MARIO_ACTIONS_OBJECT_H
#define MARIO_ACTIONS_OBJECT_H
#pragma once
#include <PR/ultratypes.h>
@@ -7,5 +6,3 @@
s32 mario_update_punch_sequence(struct MarioState *m);
s32 mario_execute_object_action(struct MarioState *m);
#endif // MARIO_ACTIONS_OBJECT_H
+1 -4
View File
@@ -1,10 +1,7 @@
#ifndef MARIO_ACTIONS_SUBMERGED_H
#define MARIO_ACTIONS_SUBMERGED_H
#pragma once
#include <PR/ultratypes.h>
#include "types.h"
s32 mario_execute_submerged_action(struct MarioState *m);
#endif // MARIO_ACTIONS_SUBMERGED_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MARIO_MISC_H
#define MARIO_MISC_H
#pragma once
#include <PR/ultratypes.h>
@@ -30,5 +29,3 @@ Gfx *geo_mario_rotate_wing_cap_wings(s32 callContext, struct GraphNode *node, UN
Gfx *geo_switch_mario_hand_grab_pos(s32 callContext, struct GraphNode *b, Mat4 *mtx);
Gfx *geo_render_mirror_mario(s32 callContext, struct GraphNode *node, UNUSED Mat4 *c);
Gfx *geo_mirror_mario_backface_culling(s32 callContext, struct GraphNode *node, UNUSED Mat4 *c);
#endif // MARIO_MISC_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MARIO_STEP_H
#define MARIO_STEP_H
#pragma once
#include <PR/ultratypes.h>
@@ -32,5 +31,3 @@ void stop_and_set_height_to_floor(struct MarioState *m);
s32 stationary_ground_step(struct MarioState *m);
s32 perform_ground_step(struct MarioState *m);
s32 perform_air_step(struct MarioState *m, u32 stepArg);
#endif // MARIO_STEP_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MEMORY_H
#define MEMORY_H
#pragma once
#include <PR/ultratypes.h>
@@ -84,5 +83,3 @@ void mem_pool_free(struct MemoryPool *pool, void *addr);
void *alloc_display_list(u32 size);
void setup_dma_table_list(struct DmaHandlerList *list, void *srcAddr, void *buffer);
s32 load_patchable_table(struct DmaHandlerList *list, s32 index);
#endif // MEMORY_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef MOVING_TEXTURE_H
#define MOVING_TEXTURE_H
#pragma once
#include <PR/ultratypes.h>
@@ -120,5 +119,3 @@ Gfx *geo_movtex_draw_colored_no_update(s32 callContext, struct GraphNode *node,
Gfx *geo_movtex_draw_colored_2_no_update(s32 callContext, struct GraphNode *node, UNUSED Mat4 mtx);
Gfx *geo_movtex_update_horizontal(s32 callContext, struct GraphNode *node, UNUSED Mat4 mtx);
Gfx *geo_movtex_draw_colored_no_update(s32 callContext, struct GraphNode *node, UNUSED Mat4 mtx);
#endif // MOVING_TEXTURE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef OBJ_BEHAVIORS_H
#define OBJ_BEHAVIORS_H
#pragma once
#include <PR/ultratypes.h>
@@ -161,5 +160,3 @@ void bhv_free_bowling_ball_loop(void); /* likely unused */
void bhv_rr_cruiser_wing_init(void);
void bhv_rr_cruiser_wing_loop(void);
void spawn_default_star(f32 x, f32 y, f32 z);
#endif // OBJ_BEHAVIORS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef OBJ_BEHAVIORS_2_H
#define OBJ_BEHAVIORS_2_H
#pragma once
#include <PR/ultratypes.h>
@@ -19,5 +18,3 @@ void shelled_koopa_attack_handler(s32 attackType);
void obj_spit_fire(s16 relativePosX, s16 relativePosY, s16 relativePosZ, f32 scale, s32 model,
f32 startSpeed, f32 endSpeed, s16 movePitch);
void obj_set_speed_to_zero(void);
#endif // OBJ_BEHAVIORS_2_H
+1 -4
View File
@@ -1,6 +1,3 @@
#ifndef OBJECT_COLLISION_H
#define OBJECT_COLLISION_H
#pragma once
void detect_object_collisions(void);
#endif // OBJECT_COLLISION_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef OBJECT_HELPERS_H
#define OBJECT_HELPERS_H
#pragma once
#include <PR/ultratypes.h>
@@ -285,5 +284,3 @@ void obj_set_model(struct Object *obj, s32 modelID);
s32 obj_has_model(struct Object *obj, u16 modelID);
u32 obj_get_model_id(struct Object *obj);
// End of HackerSM64 stuff
#endif // OBJECT_HELPERS_H
+1 -5
View File
@@ -1,5 +1,4 @@
#ifndef OBJECT_LIST_PROCESSOR_H
#define OBJECT_LIST_PROCESSOR_H
#pragma once
#include <PR/ultratypes.h>
@@ -120,6 +119,3 @@ void unload_objects_from_area(UNUSED s32 unused, s32 areaIndex);
void spawn_objects_from_info(UNUSED s32 unused, struct SpawnInfo *spawnInfo);
void clear_objects(void);
void update_objects(UNUSED s32 unused);
#endif // OBJECT_LIST_PROCESSOR_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef PAINTINGS_H
#define PAINTINGS_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -137,5 +136,3 @@ extern s8 gDddPaintingStatus;
Gfx *geo_painting_draw(s32 callContext, struct GraphNode *node, UNUSED void *context);
Gfx *geo_painting_update(s32 callContext, UNUSED struct GraphNode *node, UNUSED Mat4 c);
#endif // PAINTINGS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef PLATFORM_DISPLACEMENT_H
#define PLATFORM_DISPLACEMENT_H
#pragma once
#include <PR/ultratypes.h>
@@ -26,5 +25,3 @@ void set_mario_pos(f32 x, f32 y, f32 z);
#endif
void apply_mario_platform_displacement(void);
void clear_mario_platform(void);
#endif // PLATFORM_DISPLACEMENT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef PRINT_H
#define PRINT_H
#pragma once
#include <PR/ultratypes.h>
@@ -29,5 +28,3 @@ void print_text_fmt_int(s32 x, s32 y, const char *str, s32 n);
void print_text(s32 x, s32 y, const char *str);
void print_text_centered(s32 x, s32 y, const char *str);
void render_text_labels(void);
#endif // PRINT_H
+1 -3
View File
@@ -1,5 +1,4 @@
#ifndef _PRINTF_H_
#define _PRINTF_H_
#pragma once
#include <stdarg.h>
typedef struct
@@ -33,4 +32,3 @@ typedef struct
s32 _Printf(char *(*prout)(char *, const char *, size_t), char *dst, const char *fmt, va_list args);
void _Litob(printf_struct *args, u8 type);
void _Ldtob(printf_struct *args, u8 type);
#endif
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef PROFILER_H
#define PROFILER_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/os_time.h>
@@ -47,5 +46,3 @@ void profiler_log_thread4_time(void);
void profiler_log_gfx_time(enum ProfilerGfxEvent eventID);
void profiler_log_vblank_time(void);
void draw_profiler(void);
#endif // PROFILER_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef PUPPYCAM2_H
#define PUPPYCAM2_H
#pragma once
#ifdef PUPPYCAM
@@ -195,5 +194,3 @@ extern void puppycam_warp(f32 displacementX, f32 displacementY, f32 displacement
extern s32 puppycam_move_spline(struct sPuppySpline splinePos[], struct sPuppySpline splineFocus[], s32 mode, s32 index);
#endif
#endif // PUPPYCAM2_H
+2 -3
View File
@@ -1,6 +1,6 @@
#pragma once
#ifdef PUPPYLIGHTS
#ifndef PUPPYLIGHTS_H
#define PUPPYLIGHTS_H
#include "types.h"
#include "command_macros_base.h"
@@ -54,4 +54,3 @@ extern void puppylights_allocate(void);
extern void delete_lights(void);
#endif
#endif
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef PUPPYPRINT_H
#define PUPPYPRINT_H
#pragma once
#ifdef PUPPYPRINT
@@ -74,5 +73,3 @@ extern void append_puppyprint_log(const char *str, ...);
extern char consoleLogTable[LOG_BUFFER_SIZE][255];
#endif
#endif // PUPPYPRINT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RENDERING_GRAPH_NODE_H
#define RENDERING_GRAPH_NODE_H
#pragma once
#include <PR/ultratypes.h>
@@ -55,5 +54,3 @@ extern f32 gWorldScale;
void geo_process_node_and_siblings(struct GraphNode *firstNode);
void geo_process_root(struct GraphNodeRoot *node, Vp *b, Vp *c, s32 clearColor);
#endif // RENDERING_GRAPH_NODE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef RUMBLE_INIT_H
#define RUMBLE_INIT_H
#pragma once
#include <PR/ultratypes.h>
@@ -23,5 +22,3 @@ void create_thread_6(void);
void rumble_thread_update_vi(void);
#endif // ENABLE_RUMBLE
#endif // RUMBLE_INIT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SAVE_FILE_H
#define SAVE_FILE_H
#pragma once
#include <PR/ultratypes.h>
@@ -194,5 +193,3 @@ enum EuLanguages {
void eu_set_language(u16 language);
u16 eu_get_language(void);
#endif
#endif // SAVE_FILE_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SCREEN_TRANSITION_H
#define SCREEN_TRANSITION_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -23,5 +22,3 @@ enum TextureTransitionType
s32 render_screen_transition(s8 fadeTimer, s8 transType, u8 transTime, struct WarpTransitionData *transData);
Gfx *geo_cannon_circle_base(s32 callContext, struct GraphNode *node, UNUSED Mat4 mtx);
#endif // SCREEN_TRANSITION_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SEGMENT2_H
#define SEGMENT2_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -63,5 +62,3 @@ extern Gfx dl_billboard_num_6[];
extern Gfx dl_billboard_num_7[];
extern Gfx dl_billboard_num_8[];
extern Gfx dl_billboard_num_9[];
#endif // SEGMENT2_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SEGMENT7_H
#define SEGMENT7_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -28,5 +27,3 @@ extern Gfx *intro_seg7_dl_main_logo;
extern Gfx *intro_seg7_dl_copyright_trademark;
extern f32 intro_seg7_table_scale_1[];
extern f32 intro_seg7_table_scale_2[];
#endif // SEGMENT7_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SHADOW_H
#define SHADOW_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -50,5 +49,3 @@ extern s8 gMarioOnIceOrCarpet;
* with the given initial solidity and "shadowType" (described above).
*/
Gfx *create_shadow_below_xyz(f32 xPos, f32 yPos, f32 zPos, s16 shadowScale, u8 shadowSolidity, s8 shadowType);
#endif // SHADOW_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SKYBOX_H
#define SKYBOX_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/gbi.h>
@@ -7,5 +6,3 @@
Gfx *create_skybox_facing_camera(s8 player, s8 background, f32 fov,
f32 posX, f32 posY, f32 posZ,
f32 focX, f32 focY, f32 focZ);
#endif // SKYBOX_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SOUND_INIT_H
#define SOUND_INIT_H
#pragma once
#include <PR/ultratypes.h>
@@ -38,5 +37,3 @@ void fadeout_cap_music(void);
void stop_cap_music(void);
void audio_game_loop_tick(void);
void thread4_sound(UNUSED void *arg);
#endif // SOUND_INIT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SPAWN_OBJECT_H
#define SPAWN_OBJECT_H
#pragma once
#include "types.h"
@@ -7,5 +6,3 @@ void init_free_object_list(void);
void clear_object_lists(struct ObjectNode *objLists);
void unload_object(struct Object *obj);
struct Object *create_object(const BehaviorScript *bhvScript);
#endif // SPAWN_OBJECT_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SPAWN_SOUND_H
#define SPAWN_SOUND_H
#pragma once
#include <PR/ultratypes.h>
@@ -20,5 +19,3 @@ void cur_obj_play_sound_1(s32 soundMagic);
void cur_obj_play_sound_2(s32 soundMagic);
void create_sound_spawner(s32 soundMagic);
void exec_anim_sound_state(struct SoundState *soundStates);
#endif // SPAWN_SOUND_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef SRAM_H
#define SRAM_H
#pragma once
/*----------------------------------------------------------------------*/
@@ -26,5 +25,3 @@ extern int nuPiReadWriteSram(u32 addr, void* buf_ptr, u32 size, s32 flag);
/*----------------------------------------------------------------------*/
#define nuPiWriteSram(addr, buf_ptr, size) \
nuPiReadWriteSram(addr, buf_ptr, size, OS_WRITE)
#endif // SRAM_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef VC_CHECK_H
#define VC_CHECK_H
#pragma once
#include "sm64.h"
@@ -18,5 +17,3 @@ f32 round_double_to_float(f64);
* RTZ will output not 1.0f, RTN will output exactly 1.0f
*/
#define IS_VC() (1.0f != round_double_to_float(0.9999999999999999))
#endif
+1 -4
View File
@@ -1,9 +1,6 @@
#ifndef VER_H
#define VER_H
#pragma once
extern char __username__[];
extern char __datetime__[];
extern char __compiler__[];
extern char __linker__[];
#endif
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_DEBUGGING_UTILS_H
#define GD_DEBUGGING_UTILS_H
#pragma once
#include <PR/ultratypes.h>
@@ -89,5 +88,3 @@ extern s32 gd_fread(s8 *, s32, s32, struct GdFile *);
extern void gd_fclose(struct GdFile *);
extern u32 gd_get_file_size(struct GdFile *);
extern s32 gd_fread_line(char *, u32, struct GdFile *);
#endif // GD_DEBUGGING_UTILS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_DRAW_OBJECTS_H
#define GD_DRAW_OBJECTS_H
#pragma once
#include <PR/ultratypes.h>
@@ -46,5 +45,3 @@ void create_gddl_for_shapes(struct ObjGroup *grp);
void map_face_materials(struct ObjGroup *faces, struct ObjGroup *mtls);
void map_vertices(struct ObjGroup *facegrp, struct ObjGroup *vtxgrp);
void update_view(struct ObjView *view);
#endif // GD_DRAW_OBJECTS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_DYNLIST_PROCESSOR_H
#define GD_DYNLIST_PROCESSOR_H
#pragma once
#include <PR/ultratypes.h>
@@ -95,5 +94,3 @@ void d_set_i_matrix(Mat4f *src);
Mat4f *d_get_matrix_ptr(void);
Mat4f *d_get_i_mtx_ptr(void);
f32 d_calc_world_dist_btwn(struct GdObj *obj1, struct GdObj *obj2);
#endif // GD_DYNLIST_PROCESSOR_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_ANIMDATA_H
#define GD_ANIMDATA_H
#pragma once
#include "../gd_types.h"
#define END_ANIMDATA_INFO_ARR { -1, GD_ANIM_EMPTY, NULL }
@@ -29,5 +28,3 @@ extern struct AnimDataInfo anim_mario_eyelid_right[];
extern struct AnimDataInfo anim_mario_intro[];
extern struct AnimDataInfo anim_silver_star[];
extern struct AnimDataInfo anim_red_star[];
#endif // GD_ANIMDATA_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_DYNLIST_MACROS_H
#define GD_DYNLIST_MACROS_H
#pragma once
/* DynListCmd Macros */
@@ -398,5 +397,3 @@
/* Make a new Net from Shape double pointer PTR */
#define MakeNetFromShapePtrPtr(w1) \
{ 55, {(void *)(w1)}, {0}, {0.0, 0.0, 0.0} }
#endif // GD_DYNLIST_MACROS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_DYNLISTS_H
#define GD_DYNLISTS_H
#pragma once
#include "../gd_types.h"
@@ -144,5 +143,3 @@ extern struct DynList dynlist_mario_eyebrow_right_shape[];
extern struct DynList dynlist_mario_eyebrow_left_shape[];
extern struct DynList dynlist_mario_mustache_shape[];
extern struct DynList dynlist_mario_master[];
#endif // GD_DYNLISTS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_MACROS_H
#define GD_MACROS_H
#pragma once
/**
* @file gd_macros.h
@@ -15,5 +14,3 @@
#ifndef ALIGN
#define ALIGN(VAL_, ALIGNMENT_) (((VAL_) + ((ALIGNMENT_) - 1)) & ~((ALIGNMENT_) - 1))
#endif
#endif // GD_MACROS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_MAIN_H
#define GD_MAIN_H
#pragma once
#include <PR/ultratypes.h>
@@ -81,5 +80,3 @@ extern s32 gGdUseVtxNormal;
// bss
extern struct GdControl gGdCtrl;
extern struct GdControl gGdCtrlPrev;
#endif // GD_MAIN_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_MATH_H
#define GD_MATH_H
#pragma once
#include <PR/ultratypes.h>
@@ -52,5 +51,3 @@ void gd_mult_mat4f(const Mat4f *mA, const Mat4f *mB, Mat4f *dst);
void gd_print_vec(UNUSED const char *prefix, const struct GdVec3f *vec);
void gd_print_bounding_box(UNUSED const char *prefix, const struct GdBoundingBox *p);
void gd_print_mtx(UNUSED const char *prefix, const Mat4f *mtx);
#endif // GD_MATH_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_MEMORY_H
#define GD_MEMORY_H
#pragma once
#include <PR/ultratypes.h>
@@ -31,5 +30,3 @@ extern void *gd_request_mem(u32 size, u8 permanence);
extern struct GMemBlock *gd_add_mem_to_heap(u32 size, void *addr, u8 permanence);
extern void init_mem_block_lists(void);
extern void mem_stats(void);
#endif // GD_MEMORY_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_TYPES_H
#define GD_TYPES_H
#pragma once
#include <ultra64.h>
@@ -652,5 +651,3 @@ struct ObjUnk200000 {
/* 0x30 */ struct ObjVertex *unk30; //not sure; guessing for Unknown801781DC; 30 and 34 could switch with ObjZone
/* 0x34 */ struct ObjFace *unk34; //not sure; guessing for Unknown801781DC
}; /* sizeof = 0x38*/
#endif // GD_TYPES_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_JOINTS_H
#define GD_JOINTS_H
#pragma once
#include <PR/ultratypes.h>
@@ -27,5 +26,3 @@ void reset_joint(struct ObjJoint *j);
void func_80191824(struct ObjJoint *j);
void func_80191E88(struct ObjGroup *grp);
void reset_joint_counts(void);
#endif // GD_JOINTS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_OBJECTS_H
#define GD_OBJECTS_H
#pragma once
#include <PR/ultratypes.h>
@@ -98,5 +97,3 @@ void move_lights_in_grp(struct ObjGroup *group);
void proc_view_movement(struct ObjView *view);
void reset_nets_and_gadgets(struct ObjGroup *group);
void null_obj_lists(void);
#endif // GD_OBJECTS_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_OLD_MENU_H
#define GD_OLD_MENU_H
#pragma once
#include <PR/ultratypes.h>
@@ -11,5 +10,3 @@ struct ObjGadget *make_gadget(UNUSED s32 a0, s32 a1);
void reset_gadget(struct ObjGadget *gdgt);
void reset_gadgets_in_grp(struct ObjGroup *grp);
struct ObjLabel *make_label(struct ObjValPtr *ptr, char *str, s32 a2, f32 x, f32 y, f32 z);
#endif // GD_OLD_MENU_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_PARTICLES_H
#define GD_PARTICLES_H
#pragma once
#include <PR/ultratypes.h>
@@ -9,5 +8,3 @@
void func_801823A0(struct ObjNet *net);
struct ObjParticle *make_particle(u32 a, s32 b, f32 x, f32 y, f32 z);
void move_particles_in_grp(struct ObjGroup *group);
#endif // GD_PARTICLES_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_RENDERER_H
#define GD_RENDERER_H
#pragma once
#include <PR/ultratypes.h>
#include <PR/os_cont.h>
@@ -120,5 +119,3 @@ void store_in_pickbuf(s16 data);
s32 get_cur_pickbuf_offset(UNUSED s16 *arg0);
void set_vtx_tc_buf(f32 tcS, f32 tcT);
struct GdObj *load_dynlist(struct DynList *dynlist);
#endif // GD_RENDERER_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_SFX_H
#define GD_SFX_H
#pragma once
#include <PR/ultratypes.h>
@@ -21,5 +20,3 @@ void gd_reset_sfx(void);
u32 gd_new_sfx_to_play(void);
void gd_sfx_update(void);
void gd_play_sfx(enum GdSfx sfx);
#endif // GD_SFX_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_SHAPE_HELPER_H
#define GD_SHAPE_HELPER_H
#pragma once
#include <PR/ultratypes.h>
@@ -25,5 +24,3 @@ void animate_mario_head_normal(struct ObjAnimator *self);
s32 load_mario_head(void (*aniFn)(struct ObjAnimator *));
void load_shapes2(void);
struct ObjFace* make_face_with_colour(f32 r, f32 g, f32 b);
#endif // GD_SHAPE_HELPER_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_SKIN_H
#define GD_SKIN_H
#pragma once
#include <PR/ultratypes.h>
@@ -16,5 +15,3 @@ void convert_net_verts(struct ObjNet *net);
void move_nets(struct ObjGroup *group);
void func_80193848(struct ObjGroup *group);
void reset_net_count(void);
#endif // GD_SKIN_H
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef GD_SKIN_MOVEMENT_H
#define GD_SKIN_MOVEMENT_H
#pragma once
#include "gd_types.h"
@@ -7,5 +6,3 @@ void scale_verts(struct ObjGroup *a0);
void move_skin(struct ObjNet *net);
void func_80181894(struct ObjJoint *joint);
void reset_joint_weights(struct ObjJoint *joint);
#endif // GD_SKIN_MOVEMENT_H
+1 -6
View File
@@ -1,6 +1,4 @@
#ifndef HVQM_H
#define HVQM_H
#pragma once
/*
* Size of the data area for the HVQ microcode
@@ -113,6 +111,3 @@ int get_cfb();
typedef u32 (*tkAudioProc)(void *pcmbuf);
typedef tkAudioProc (*tkRewindProc)(void);
#endif // HVQM_H
+1 -4
View File
@@ -5,8 +5,7 @@
/* @(#) $Id: zconf.h,v 1.1 2004/06/24 00:04:39 jprincen Exp $ */
#ifndef ZCONF_H
#define ZCONF_H
#pragma once
/*
* If you *really* need a unique prefix for all types and library functions,
@@ -319,5 +318,3 @@ typedef uLong FAR uLongf;
# pragma map(inflate_fast,"INFA")
# pragma map(inflate_copyright,"INCOPY")
#endif
#endif /* ZCONF_H */
+4 -7
View File
@@ -28,8 +28,7 @@
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
*/
#ifndef ZLIB_H
#define ZLIB_H
#pragma once
#include "zconf.h"
@@ -1185,9 +1184,9 @@ ZEXTERN int ZEXPORT inflateBackInit_ OF((z_stream FAR *strm, int windowBits,
ZLIB_VERSION, sizeof(z_stream))
#if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
struct internal_state {int dummy;}; /* hack for buggy compilers */
#endif
// #if !defined(ZUTIL_H) && !defined(NO_DUMMY_DECL)
// struct internal_state {int dummy;}; /* hack for buggy compilers */
// #endif
ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp z));
ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
@@ -1195,5 +1194,3 @@ ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
#ifdef __cplusplus
}
#endif
#endif /* ZLIB_H */
Loaded 100 of 367 files, more files were not shown because too many files have changed in this diff. Show more