Refresh 14
This commit is contained in:
1 parent
ecd3d152fb
commit
f9982e0ef5
251 files changed
+7496
-5757
No files matched your search
@@ -31,7 +31,7 @@
|
||||
static u16 gRandomSeed16;
|
||||
|
||||
// Unused function that directly jumps to a behavior command and resets the object's stack index.
|
||||
static void goto_behavior_unused(const BehaviorScript *bhvAddr) {
|
||||
UNUSED static void goto_behavior_unused(const BehaviorScript *bhvAddr) {
|
||||
gCurBhvCommand = segmented_to_virtual(bhvAddr);
|
||||
gCurrentObject->bhvStackIndex = 0;
|
||||
}
|
||||
@@ -107,7 +107,7 @@ static uintptr_t cur_obj_bhv_stack_pop(void) {
|
||||
return bhvAddr;
|
||||
}
|
||||
|
||||
static void stub_behavior_script_1(void) {
|
||||
UNUSED static void stub_behavior_script_1(void) {
|
||||
for (;;) {
|
||||
;
|
||||
}
|
||||
@@ -687,7 +687,7 @@ static s32 bhv_cmd_begin(void) {
|
||||
// It cannot be simply re-added to the table, as unlike all other bhv commands it takes a parameter.
|
||||
// Theoretically this command would have been of variable size.
|
||||
// Included below is a modified/repaired version of this function that would work properly.
|
||||
static void bhv_cmd_set_int_random_from_table(s32 tableSize) {
|
||||
UNUSED static void bhv_cmd_set_int_random_from_table(s32 tableSize) {
|
||||
u8 field = BHV_CMD_GET_2ND_U8(0);
|
||||
s32 table[16];
|
||||
s32 i;
|
||||
|
||||
@@ -827,7 +827,7 @@ struct LevelCommand *level_script_execute(struct LevelCommand *cmd) {
|
||||
}
|
||||
|
||||
profiler_log_thread5_time(LEVEL_SCRIPT_EXECUTE);
|
||||
init_render_image();
|
||||
init_rcp();
|
||||
render_game();
|
||||
end_master_display_list();
|
||||
alloc_display_list(0);
|
||||
|
||||
@@ -15,7 +15,14 @@ int gSplineState;
|
||||
// These functions have bogus return values.
|
||||
// Disable the compiler warning.
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__clang__)
|
||||
#pragma GCC diagnostic ignored "-Wreturn-stack-address"
|
||||
#else
|
||||
#pragma GCC diagnostic ignored "-Wreturn-local-addr"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/// Copy vector 'src' to 'dest'
|
||||
void *vec3f_copy(Vec3f dest, Vec3f src) {
|
||||
|
||||
@@ -369,7 +369,7 @@ f32 unused_obj_find_floor_height(struct Object *obj) {
|
||||
*/
|
||||
struct FloorGeometry sFloorGeo;
|
||||
|
||||
static u8 unused8038BE50[0x40];
|
||||
UNUSED static u8 unused8038BE50[0x40];
|
||||
|
||||
/**
|
||||
* Return the floor height underneath (xPos, yPos, zPos) and populate `floorGeo`
|
||||
|
||||
@@ -291,7 +291,7 @@ static void add_surface(struct Surface *surface, s32 dynamic) {
|
||||
}
|
||||
}
|
||||
|
||||
static void stub_surface_load_1(void) {
|
||||
UNUSED static void stub_surface_load_1(void) {
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -653,7 +653,7 @@ void clear_dynamic_surfaces(void) {
|
||||
}
|
||||
}
|
||||
|
||||
static void unused_80383604(void) {
|
||||
UNUSED static void unused_80383604(void) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user