Refresh 10
This commit is contained in:
1 parent
e58669b4b3
commit
d43d9b7f20
444 files changed
+30163
-7628
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#ifndef DEBUG_LEVEL_SELECT_H
|
||||
#define DEBUG_LEVEL_SELECT_H
|
||||
|
||||
#include "types.h"
|
||||
#include <PR/gbi.h>
|
||||
|
||||
extern const Gfx debug_level_select_dl_07000858[];
|
||||
extern const Gfx debug_level_select_dl_07001100[];
|
||||
@@ -14,4 +14,4 @@ extern const Gfx debug_level_select_dl_07005558[];
|
||||
extern const Gfx debug_level_select_dl_070059F8[];
|
||||
extern const Gfx debug_level_select_dl_070063B0[];
|
||||
|
||||
#endif
|
||||
#endif // DEBUG_LEVEL_SELECT_H
|
||||
+17
-16
@@ -1,24 +1,25 @@
|
||||
#include <ultra64.h>
|
||||
#include <PR/ultratypes.h>
|
||||
#include <PR/gbi.h>
|
||||
|
||||
#include "sm64.h"
|
||||
#include "audio/external.h"
|
||||
#include "game/game_init.h"
|
||||
#include "game/ingame_menu.h"
|
||||
#include "game/object_helpers.h"
|
||||
#include "game/area.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/spawn_object.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "game/segment2.h"
|
||||
#include "game/segment7.h"
|
||||
#include "game/print.h"
|
||||
#include "behavior_data.h"
|
||||
#include "dialog_ids.h"
|
||||
#include "engine/behavior_script.h"
|
||||
#include "engine/graph_node.h"
|
||||
#include "engine/math_util.h"
|
||||
#include "behavior_data.h"
|
||||
#include "text_strings.h"
|
||||
#include "file_select.h"
|
||||
#include "dialog_ids.h"
|
||||
#include "game/area.h"
|
||||
#include "game/game_init.h"
|
||||
#include "game/ingame_menu.h"
|
||||
#include "game/object_helpers.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "game/print.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/segment2.h"
|
||||
#include "game/segment7.h"
|
||||
#include "game/spawn_object.h"
|
||||
#include "sm64.h"
|
||||
#include "text_strings.h"
|
||||
|
||||
#include "eu_translation.h"
|
||||
#ifdef VERSION_EU
|
||||
@@ -2768,7 +2769,7 @@ static void print_file_select_strings(void) {
|
||||
/**
|
||||
* Geo function that prints file select strings and the cursor.
|
||||
*/
|
||||
Gfx *geo_file_select_strings_and_menu_cursor(s32 callContext, UNUSED struct GraphNode *node, UNUSED f32 mtx[4][4]) {
|
||||
Gfx *geo_file_select_strings_and_menu_cursor(s32 callContext, UNUSED struct GraphNode *node, UNUSED Mat4 mtx) {
|
||||
if (callContext == GEO_CONTEXT_RENDER) {
|
||||
print_file_select_strings();
|
||||
print_menu_cursor();
|
||||
|
||||
+13
-13
@@ -1,6 +1,9 @@
|
||||
#ifndef FILE_SELECT_H
|
||||
#define FILE_SELECT_H
|
||||
|
||||
#include <PR/ultratypes.h>
|
||||
#include <PR/gbi.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#define MENU_LAYER_MAIN 1
|
||||
@@ -124,17 +127,14 @@ enum SoundModeMenuActionPhase {
|
||||
SOUND_MODE_PHASE_MAIN
|
||||
};
|
||||
|
||||
extern u32 gGlobalTimer;
|
||||
void beh_yellow_background_menu_init(void);
|
||||
void beh_yellow_background_menu_loop(void);
|
||||
void bhv_menu_button_init(void);
|
||||
void bhv_menu_button_loop(void);
|
||||
void bhv_menu_button_manager_init(void);
|
||||
void bhv_menu_button_manager_loop(void);
|
||||
Gfx *geo_file_select_strings_and_menu_cursor(s32 callContext, UNUSED struct GraphNode *node, UNUSED Mat4 mtx);
|
||||
s32 lvl_init_menu_values_and_cursor_pos(UNUSED s32 arg, UNUSED s32 unused);
|
||||
s32 lvl_update_obj_and_load_file_selected(UNUSED s32 arg, UNUSED s32 unused);
|
||||
|
||||
extern void beh_yellow_background_menu_init(void);
|
||||
extern void beh_yellow_background_menu_loop(void);
|
||||
extern void bhv_menu_button_init(void);
|
||||
extern void bhv_menu_button_loop(void);
|
||||
extern void bhv_menu_button_manager_init(void);
|
||||
extern void bhv_menu_button_manager_loop(void);
|
||||
extern Gfx *geo_file_select_strings_and_menu_cursor(s32 callContext, struct GraphNode *node,
|
||||
f32 mtx[4][4]);
|
||||
extern s32 lvl_init_menu_values_and_cursor_pos(s32 arg, s32 unused);
|
||||
extern s32 lvl_update_obj_and_load_file_selected(s32 arg, s32 unused);
|
||||
|
||||
#endif /* FILE_SELECT_H */
|
||||
#endif // FILE_SELECT_H
|
||||
+8
-17
@@ -1,11 +1,13 @@
|
||||
#include "ultra64.h"
|
||||
#include "sm64.h"
|
||||
#include "prevent_bss_reordering.h"
|
||||
#include "types.h"
|
||||
#include <PR/ultratypes.h>
|
||||
|
||||
#include "game/memory.h"
|
||||
#include "game/segment2.h"
|
||||
#include "game/segment7.h"
|
||||
#include "intro_geo.h"
|
||||
#include "sm64.h"
|
||||
#include "textures.h"
|
||||
#include "types.h"
|
||||
#include "prevent_bss_reordering.h"
|
||||
|
||||
// frame counts for the zoom in, hold, and zoom out of title model
|
||||
#define INTRO_STEPS_ZOOM_IN 20
|
||||
@@ -22,17 +24,6 @@ struct GraphNodeMore {
|
||||
/*0x18*/ u32 unk18;
|
||||
};
|
||||
|
||||
// title screen segment A
|
||||
extern Gfx title_screen_bg_dl_0A000118[];
|
||||
extern Gfx title_screen_bg_dl_0A000100[];
|
||||
extern Gfx title_screen_bg_dl_0A000130[];
|
||||
extern Gfx title_screen_bg_dl_0A000148[];
|
||||
extern Gfx title_screen_bg_dl_0A000160[];
|
||||
extern Gfx title_screen_bg_dl_0A000178[];
|
||||
extern Gfx title_screen_bg_dl_0A000190[];
|
||||
extern const u8 *const mario_title_texture_table[];
|
||||
extern const u8 *const game_over_texture_table[];
|
||||
|
||||
// intro geo bss
|
||||
s32 gGameOverFrameCounter;
|
||||
s32 gGameOverTableIndex;
|
||||
@@ -40,8 +31,8 @@ s16 gTitleZoomCounter;
|
||||
s32 gTitleFadeCounter;
|
||||
|
||||
// intro screen background display lists for each of four 80x20 textures
|
||||
Gfx *introBackgroundDlRows[] = { title_screen_bg_dl_0A000130, title_screen_bg_dl_0A000148,
|
||||
title_screen_bg_dl_0A000160, title_screen_bg_dl_0A000178 };
|
||||
const Gfx *introBackgroundDlRows[] = { title_screen_bg_dl_0A000130, title_screen_bg_dl_0A000148,
|
||||
title_screen_bg_dl_0A000160, title_screen_bg_dl_0A000178 };
|
||||
|
||||
// intro screen background texture X offsets
|
||||
float introBackgroundOffsetX[] = {
|
||||
|
||||
+12
-9
@@ -1,12 +1,15 @@
|
||||
#ifndef _INTRO_GEO_H
|
||||
#define _INTRO_GEO_H
|
||||
#ifndef INTRO_GEO_H
|
||||
#define INTRO_GEO_H
|
||||
|
||||
#include "engine/graph_node.h"
|
||||
#include <PR/ultratypes.h>
|
||||
#include <PR/gbi.h>
|
||||
|
||||
Gfx *geo_title_screen(s32 a0, struct GraphNode *a1, UNUSED void *context);
|
||||
Gfx *geo_fade_transition(s32 a0, struct GraphNode *a1, UNUSED void *context);
|
||||
Gfx *intro_backdrop_one_image(s32 index, s8 *backdrop_table);
|
||||
Gfx *geo_intro_backdrop(s32 a0, struct GraphNode *a1, UNUSED void *context);
|
||||
Gfx *geo_game_over_tile(s32 a0, struct GraphNode *a1, UNUSED void *context);
|
||||
#include "types.h"
|
||||
|
||||
#endif /* _INTRO_GEO_H */
|
||||
Gfx *geo_title_screen(s32 sp50, struct GraphNode *sp54, UNUSED void *context);
|
||||
Gfx *geo_fade_transition(s32 sp40, struct GraphNode *sp44, UNUSED void *context);
|
||||
Gfx *intro_backdrop_one_image(s32 index, s8 *backgroundTable);
|
||||
Gfx *geo_intro_backdrop(s32 sp48, struct GraphNode *sp4c, UNUSED void *context);
|
||||
Gfx *geo_game_over_tile(s32 sp40, struct GraphNode *sp44, UNUSED void *context);
|
||||
|
||||
#endif // INTRO_GEO_H
|
||||
@@ -1,18 +1,18 @@
|
||||
#include <ultra64.h>
|
||||
#include <PR/ultratypes.h>
|
||||
|
||||
#include "sm64.h"
|
||||
#include "audio/external.h"
|
||||
#include "engine/math_util.h"
|
||||
#include "game/area.h"
|
||||
#include "game/game_init.h"
|
||||
#include "game/level_update.h"
|
||||
#include "game/main.h"
|
||||
#include "game/memory.h"
|
||||
#include "game/area.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/level_update.h"
|
||||
#include "game/sound_init.h"
|
||||
#include "game/print.h"
|
||||
#include "seq_ids.h"
|
||||
#include "engine/math_util.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/sound_init.h"
|
||||
#include "level_table.h"
|
||||
#include "seq_ids.h"
|
||||
#include "sm64.h"
|
||||
|
||||
#define PRESS_START_DEMO_TIMER 800
|
||||
|
||||
@@ -47,7 +47,7 @@ int run_press_start_demo_timer(s32 timer) {
|
||||
// start the demo. 800 frames has passed while
|
||||
// player is idle on PRESS START screen.
|
||||
|
||||
// start the mario demo animation for the demo list.
|
||||
// start the Mario demo animation for the demo list.
|
||||
load_patchable_table(&gDemo, gDemoInputListID);
|
||||
|
||||
// if the next demo sequence ID is the count limit, reset it back to
|
||||
@@ -205,7 +205,7 @@ s32 lvl_intro_update(s16 arg1, UNUSED s32 arg2) {
|
||||
break;
|
||||
case 3:
|
||||
retVar = level_select_input_loop();
|
||||
break; // useless break needed to match
|
||||
break;
|
||||
}
|
||||
return retVar;
|
||||
}
|
||||
@@ -1,8 +1,10 @@
|
||||
#ifndef _LEVEL_SELECT_MENU_H
|
||||
#define _LEVEL_SELECT_MENU_H
|
||||
#ifndef LEVEL_SELECT_MENU_H
|
||||
#define LEVEL_SELECT_MENU_H
|
||||
|
||||
#include "types.h"
|
||||
#include <PR/ultratypes.h>
|
||||
|
||||
extern s32 lvl_intro_update(s16 arg1, s32 arg2);
|
||||
#include "macros.h"
|
||||
|
||||
#endif /* _LEVEL_SELECT_MENU_H */
|
||||
s32 lvl_intro_update(s16 arg1, UNUSED s32 arg2);
|
||||
|
||||
#endif // LEVEL_SELECT_MENU_H
|
||||
+17
-17
@@ -1,24 +1,24 @@
|
||||
#include <ultra64.h>
|
||||
#include <PR/ultratypes.h>
|
||||
|
||||
#include "sm64.h"
|
||||
#include "audio/external.h"
|
||||
#include "game/game_init.h"
|
||||
#include "game/memory.h"
|
||||
#include "game/area.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/object_helpers.h"
|
||||
#include "game/ingame_menu.h"
|
||||
#include "game/level_update.h"
|
||||
#include "game/segment2.h"
|
||||
#include "game/segment7.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "behavior_data.h"
|
||||
#include "engine/behavior_script.h"
|
||||
#include "engine/graph_node.h"
|
||||
#include "behavior_data.h"
|
||||
#include "text_strings.h"
|
||||
#include "star_select.h"
|
||||
#include "eu_translation.h"
|
||||
#include <prevent_bss_reordering.h>
|
||||
#include "game/area.h"
|
||||
#include "game/game_init.h"
|
||||
#include "game/ingame_menu.h"
|
||||
#include "game/level_update.h"
|
||||
#include "game/memory.h"
|
||||
#include "game/object_helpers.h"
|
||||
#include "game/object_list_processor.h"
|
||||
#include "game/save_file.h"
|
||||
#include "game/segment2.h"
|
||||
#include "game/segment7.h"
|
||||
#include "sm64.h"
|
||||
#include "star_select.h"
|
||||
#include "text_strings.h"
|
||||
#include "prevent_bss_reordering.h"
|
||||
|
||||
/**
|
||||
* @file star_select.c
|
||||
@@ -409,7 +409,7 @@ s32 lvl_init_act_selector_values_and_stars(UNUSED s32 arg, UNUSED s32 unused) {
|
||||
|
||||
/**
|
||||
* Loads act selector button actions with selected act value checks.
|
||||
* Also updates objects and returns act number selected after is choosen.
|
||||
* Also updates objects and returns act number selected after is chosen.
|
||||
*/
|
||||
s32 lvl_update_obj_and_load_act_button_actions(UNUSED s32 arg, UNUSED s32 unused) {
|
||||
if (sActSelectorMenuTimer >= 11) {
|
||||
|
||||
+10
-5
@@ -1,6 +1,11 @@
|
||||
#ifndef STAR_SELECT_H
|
||||
#define STAR_SELECT_H
|
||||
|
||||
#include <PR/ultratypes.h>
|
||||
#include <PR/gbi.h>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
enum StarSelectorTypes
|
||||
{
|
||||
STAR_SELECTOR_NOT_SELECTED,
|
||||
@@ -9,11 +14,11 @@ enum StarSelectorTypes
|
||||
};
|
||||
|
||||
#ifdef AVOID_UB
|
||||
extern Gfx *geo_act_selector_strings(s16 callContext, struct GraphNode *node, void *context);
|
||||
Gfx *geo_act_selector_strings(s16 callContext, UNUSED struct GraphNode *node, UNUSED void *context);
|
||||
#else
|
||||
extern Gfx *geo_act_selector_strings(s16 callContext, struct GraphNode *node);
|
||||
Gfx *geo_act_selector_strings(s16 callContext, UNUSED struct GraphNode *node);
|
||||
#endif
|
||||
extern s32 lvl_init_act_selector_values_and_stars(s32 arg, s32 unused);
|
||||
extern s32 lvl_update_obj_and_load_act_button_actions(s32 arg, s32 unused);
|
||||
s32 lvl_init_act_selector_values_and_stars(UNUSED s32 arg, UNUSED s32 unused);
|
||||
s32 lvl_update_obj_and_load_act_button_actions(UNUSED s32 arg, UNUSED s32 unused);
|
||||
|
||||
#endif /* STAR_SELECT_H */
|
||||
#endif // STAR_SELECT_H
|
||||
Reference in new issue
Block a user