mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-06-15 06:31:35 -04:00
Big 19750 renames
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include "audio/port_eu.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include <stdbool.h>
|
||||
#include "port/Game.h"
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ typedef struct {
|
||||
|
||||
/*
|
||||
* In render_player, spawn_players, and staff_ghosts D_802BFB80 is the arraySize8 entry
|
||||
* But in code_80091750 its the arraySize4 entry
|
||||
* But in menu_items its the arraySize4 entry
|
||||
* The only way to unify those 2 things is to use a union
|
||||
*/
|
||||
typedef union {
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
#include <defines.h>
|
||||
#include "collision.h"
|
||||
#include "memory.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "skybox_and_splitscreen.h"
|
||||
#include "code_8006E9C0.h"
|
||||
#include "spawn_players.h"
|
||||
|
||||
+3
-3
@@ -27,7 +27,7 @@
|
||||
#include <common_structs.h>
|
||||
#include "main.h"
|
||||
#include "menus.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "audio/external.h"
|
||||
#include "ending/podium_ceremony_actors.h"
|
||||
#include "spawn_players.h"
|
||||
@@ -3553,7 +3553,7 @@ void func_8000F628(void) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ((D_8018EE08 == 1) && (GetCourse() != GetPodiumCeremony())) {
|
||||
if ((gDemoUseController == 1) && (GetCourse() != GetPodiumCeremony())) {
|
||||
for (i = 0; i < NUM_PLAYERS; i++) {
|
||||
D_80163330[i] = 0;
|
||||
}
|
||||
@@ -3605,7 +3605,7 @@ void func_8000F628(void) {
|
||||
D_8016348C = 0;
|
||||
D_801634EC = 0;
|
||||
func_8001AB00();
|
||||
if (D_8018EE08 == 1) {
|
||||
if (gDemoUseController == 1) {
|
||||
if (gDemoMode == 1) {
|
||||
|
||||
for (i = 0; i < NUM_PLAYERS; i++) {
|
||||
|
||||
@@ -521,7 +521,6 @@ extern s32 D_8018D1D4;
|
||||
// extern s32 D_8018D1D8; -> objects.h
|
||||
|
||||
extern s32 D_8018D1DC;
|
||||
extern u8* D_8018D1E0;
|
||||
extern f32 D_8018D1E8;
|
||||
extern s32 D_8018D1EC;
|
||||
// extern s32 D_8018D1F0; -> objects.h
|
||||
|
||||
@@ -77,7 +77,6 @@ s32 D_8018D1D0;
|
||||
s32 D_8018D1D4;
|
||||
s32 D_8018D1D8;
|
||||
s32 D_8018D1DC;
|
||||
u8* D_8018D1E0;
|
||||
UNUSED s32 D_8018D1E4;
|
||||
f32 D_8018D1E8;
|
||||
s32 D_8018D1EC;
|
||||
|
||||
+7
-5
@@ -23,7 +23,7 @@
|
||||
#include "menus.h"
|
||||
#include <assets/other_textures.h>
|
||||
#include "render_objects.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "src/data/some_data.h"
|
||||
#include "effects.h"
|
||||
#include <assets/boo_frames.h>
|
||||
@@ -117,7 +117,10 @@ void clear_object_list() {
|
||||
objectListSize = -1;
|
||||
}
|
||||
|
||||
u8* func_8006ED94(u8* devAddr, u8* baseAddress, u32 size, u32 offset) {
|
||||
/**
|
||||
* Dma's mario kart 64 logo and course outline textures.
|
||||
*/
|
||||
u8* dma_misc_textures(u8* devAddr, u8* baseAddress, u32 size, u32 offset) {
|
||||
#ifdef TARGET_N64
|
||||
u8** tempAddress;
|
||||
u8* address;
|
||||
@@ -139,9 +142,8 @@ u8* func_8006ED94(u8* devAddr, u8* baseAddress, u32 size, u32 offset) {
|
||||
return baseAddress;
|
||||
}
|
||||
|
||||
// Stubbed because load texture directly.
|
||||
void load_mario_kart_64_logo(void) {
|
||||
u8* d_gTextureLogoMarioKart64 = LOAD_ASSET(gTextureLogoMarioKart64);
|
||||
D_8018D1E0 = func_8006ED94((u8*) d_gTextureLogoMarioKart64, (u8*) D_8018D9B0, 0x79E1, 0x20000);
|
||||
}
|
||||
|
||||
// Some kind of initalization for the Item Window part of the HUD
|
||||
@@ -175,7 +177,7 @@ void func_8006EF60(void) {
|
||||
s16 huh;
|
||||
u8* wut;
|
||||
|
||||
wut = D_8018D9B4 + 0xFFFF0000;
|
||||
wut = gMenuCompressedBuffer + 0xFFFF0000;
|
||||
// clang-format off
|
||||
// God forgive me for my sins...
|
||||
huh = 0x14; if (0) {} for (i = 0; i < huh; i++) { D_8018D248[i] = CourseManager_GetProps()->MinimapTexture; wut += ResourceGetTexSizeByName(CourseManager_GetProps()->MinimapTexture); }
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ void init_hud(void);
|
||||
void reset_object_variable(void);
|
||||
void func_8006EB10(void);
|
||||
void clear_object_list(void);
|
||||
u8* func_8006ED94(u8*, u8*, u32, u32);
|
||||
u8* dma_misc_textures(u8*, u8*, u32, u32);
|
||||
void load_mario_kart_64_logo(void);
|
||||
void init_item_window(s32);
|
||||
void func_8006EEE8(s32);
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "code_800AF9B0.h"
|
||||
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "memory.h"
|
||||
#include "main.h"
|
||||
#include "math_util.h"
|
||||
|
||||
+1083
-1083
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@
|
||||
#include <code_80086E70.h>
|
||||
#include <effects.h>
|
||||
#include <code_80091440.h>
|
||||
#include <code_80091750.h>
|
||||
#include <menu_items.h>
|
||||
#include <code_800AF9B0.h>
|
||||
#include <save.h>
|
||||
#include <code_80280000.h>
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
#include "effects.h"
|
||||
#include "audio/external.h"
|
||||
#include "spawn_players.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "port/Game.h"
|
||||
|
||||
s32 D_8018D900[8];
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "audio/external.h"
|
||||
#include <sounds.h>
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "defines.h"
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "code_80280000.h"
|
||||
#include "code_80281780.h"
|
||||
#include "skybox_and_splitscreen.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "code_8006E9C0.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "ceremony_and_credits.h"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "collision.h"
|
||||
#include "code_80281C40.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "main.h"
|
||||
#include "menus.h"
|
||||
#include "render_courses.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "skybox_and_splitscreen.h"
|
||||
#include "render_objects.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "ceremony_and_credits.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "credits.h"
|
||||
#include "defines.h"
|
||||
|
||||
struct_802850C0_entry D_802850C0[] = {
|
||||
CreditsRenderInfo gTextCreditsRenderInfo[] = {
|
||||
{ 0.80f, -200, 38, 160, 30, SLIDE_RIGHT, TEXT_BLUE_GREEN_RED_CYCLE_1, 0 },
|
||||
{ 0.90f, 520, 200, 160, 200, SLIDE_LEFT, TEXT_BLUE, 0 },
|
||||
{ 0.80f, -200, 38, 160, 30, SLIDE_RIGHT, TEXT_BLUE_GREEN_RED_CYCLE_1, 0 },
|
||||
|
||||
@@ -19,9 +19,9 @@ typedef struct {
|
||||
/* 0x0C */ s8 slideDirection; // 0 for slide right, 1 for slide left. May have other uses/effects
|
||||
/* 0x0D */ s8 textColor;
|
||||
/* 0x0E */ s16 padding; // Always seems to be 0, never read (that I can see)
|
||||
} struct_802850C0_entry; // size = 0x10
|
||||
} CreditsRenderInfo; // size = 0x10
|
||||
|
||||
extern struct_802850C0_entry D_802850C0[]; // D_802850C0
|
||||
extern CreditsRenderInfo gTextCreditsRenderInfo[]; // gTextCreditsRenderInfo
|
||||
extern char* gCreditsText[];
|
||||
|
||||
#endif
|
||||
|
||||
@@ -14,7 +14,7 @@ extern "C" {
|
||||
#include "engine/Matrix.h"
|
||||
#include "render_objects.h"
|
||||
#include "code_80086E70.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
}
|
||||
|
||||
OTrophy::OTrophy(const FVector& pos, TrophyType trophy, Behaviour bhv) {
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
// #include <filesystem>
|
||||
// #include <functional>
|
||||
// #include <main.h>
|
||||
// #include <code_80091750.h>
|
||||
// #include <menu_items.h>
|
||||
// #include <common_data.h>
|
||||
// #include <data_segment2.h>
|
||||
// #include <render_objects.h>
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80280000.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "profiler.h"
|
||||
#include "player_controller.h"
|
||||
|
||||
+1055
-1059
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ extern u32 _course_mario_raceway_dl_mio0SegmentRomStart[];
|
||||
/* File specific types */
|
||||
|
||||
/*
|
||||
Known `types` for `struct_8018D9E0_entry`
|
||||
Known `types` for `MenuItem`
|
||||
0x53: "Mushroom Cup" box on the cup selection screen
|
||||
0x54: "Flower Cup" box on the cup selection screen
|
||||
0x55: "Star Cup" box on the cup selection screen
|
||||
@@ -27,38 +27,38 @@ it last longer See `func_80096CD8` for the actual drawing of the static
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ s32 type; // id maybe?
|
||||
/* 0x04 */ s32 cursor; // sound mode, maybe some other stuff
|
||||
/* 0x08 */ s32 unk8; // This is used but I can't tell what for
|
||||
/* 0x04 */ s32 state; // sound mode, maybe some other stuff
|
||||
/* 0x08 */ s32 subState; // This is used but I can't tell what for
|
||||
/* 0x0C */ s32 column;
|
||||
/* 0x10 */ s32 row;
|
||||
/* 0x14 */ u8 priority; // priority/depth/z-level. Higher values are drawn on top of lower values
|
||||
// If equal, later entries in D_8018D9E0 are on top
|
||||
// If equal, later entries in gMenuItems are on top
|
||||
/* 0x15 */ u8 visible; // active? If 1 its displayed, if 0 its not
|
||||
// These seem to be generic space available for use by the struct, no 1 purpose for any given member
|
||||
/* 0x16 */ s16 unk16; // Potentially unused
|
||||
/* 0x18 */ s32 D_8018DEE0_index; // Index in D_8018DEE0, an array of some other struct type
|
||||
/* 0x1C */ s32 unk1C; // Multi use. Sometimes cup selection, sometimes course index.
|
||||
/* 0x20 */ s32 unk20; // Multi use, hard to tell what for though. Sometimes a random number, sometimes GP points
|
||||
/* 0x24 */ f32 unk24; // Multi use, x scaling for some things, rotation multiplier for the question box in some
|
||||
/* 0x1C */ s32 param1; // Multi use. Sometimes cup selection, sometimes course index.
|
||||
/* 0x20 */ s32 param2; // Multi use, hard to tell what for though. Sometimes a random number, sometimes GP points
|
||||
/* 0x24 */ f32 paramf; // Multi use, x scaling for some things, rotation multiplier for the question box in some
|
||||
// menus, probably some other things
|
||||
} struct_8018D9E0_entry; // size = 0x28
|
||||
} MenuItem; // size = 0x28
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ MkAnimation* textureSequence;
|
||||
/* 0x04 */ s32 sequenceIndex; // Index in textureSequence that the animation is currently on
|
||||
/* 0x08 */ s32 frameCountDown; // Frames left for the given animation part
|
||||
/* 0x0C */ u32 visible; // visbile if 0x80000000, otherwise invisbile AND paused
|
||||
/* 0x10 */ s32 D_8018E118_index; // Don't know what D_8018E118 tracks
|
||||
/* 0x10 */ s32 menuTextureIndex; // Don't know what sMenuTextureMap tracks
|
||||
/* 0x14 */ s32 unk14; // Flip flops between 0 and 1, use unknown
|
||||
} struct_8018DEE0_entry; // size = 0x18
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ MkTexture* texture;
|
||||
/* 0x4 */ s32 unk_4;
|
||||
/* 0x0 */ MenuTexture* texture;
|
||||
/* 0x4 */ s32 texNum;
|
||||
} struct_8018E060_entry; // size = 0x8
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ MkTexture* mk64Texture;
|
||||
/* 0x0 */ MenuTexture* mk64Texture;
|
||||
/* 0x4 */ s16 unk4;
|
||||
/* 0x6 */ s16 unk6;
|
||||
} struct_8018E0E8_entry; // size = 0x8
|
||||
@@ -67,15 +67,15 @@ typedef struct {
|
||||
/* 0x00 */ u64* textureData; // This should be interpreted as a segmented address
|
||||
/**
|
||||
* Its hard to tell what exactly what this is meant to be,
|
||||
* but it appears to be used as some sort of offset/index from the address stored in D_8018D9B0.
|
||||
* but it appears to be used as some sort of offset/index from the address stored in gMenuTextureBuffer.
|
||||
* This value is (roughly) the sum of (width * height) of the
|
||||
* textures in all the previous entries in D_8018E118
|
||||
* textures in all the previous entries in sMenuTextureMap
|
||||
*/
|
||||
/* 0x04 */ s32 offset;
|
||||
} struct_8018E118_entry; // size = 0x08
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ MkTexture* textures;
|
||||
/* 0x00 */ MenuTexture* textures;
|
||||
/* 0x04 */ Gfx* displayList;
|
||||
} struct_8018E768_entry; // size = 0x08
|
||||
|
||||
@@ -128,13 +128,13 @@ s32 get_string_width(char*);
|
||||
void set_text_color(s32);
|
||||
void func_800930E4(s32, s32, char*);
|
||||
void print_text0(s32, s32, char*, s32, f32, f32, s32);
|
||||
void func_80093324(s32, s32, char*, s32, f32, f32);
|
||||
void func_80093358(s32, s32, char*, s32, f32, f32);
|
||||
void print_text_mode_1(s32, s32, char*, s32, f32, f32);
|
||||
void print_text_mode_2(s32, s32, char*, s32, f32, f32);
|
||||
void print_text1(s32, s32, char*, s32, f32, f32, s32);
|
||||
void func_800936B8(s32, s32, char*, s32, f32, f32);
|
||||
void draw_text(s32, s32, char*, s32, f32, f32);
|
||||
void func_80093720(s32, s32, char*, s32, f32, f32);
|
||||
void func_80093754(s32, s32, char*, s32, f32, f32);
|
||||
void print_text1_left(s32, s32, char*, s32, f32, f32);
|
||||
void print_text1_center_mode_1(s32, s32, char*, s32, f32, f32);
|
||||
void print_text1_right(s32, s32, char*, s32, f32, f32);
|
||||
void print_text1_center_mode_2(s32, s32, char*, s32, f32, f32);
|
||||
void print_text2(s32, s32, char*, s32, f32, f32, s32);
|
||||
void func_800939C8(s32, s32, char*, s32, f32, f32);
|
||||
void text_draw(s32, s32, char*, s32, f32, f32);
|
||||
@@ -154,7 +154,7 @@ void func_800942D0(void);
|
||||
void func_80094660(struct GfxPool*, s32);
|
||||
void render_checkered_flag(struct GfxPool*, s32);
|
||||
void func_80094A64(struct GfxPool*);
|
||||
void render_menus(void);
|
||||
void setup_menus(void);
|
||||
void func_80095574(void);
|
||||
Gfx* draw_flash_select_case(Gfx*, s32, s32, s32, s32, s32);
|
||||
Gfx* draw_flash_select_case_slow(Gfx*, s32, s32, s32, s32);
|
||||
@@ -176,22 +176,22 @@ Gfx* draw_box_fill(Gfx*, s32, s32, s32, s32, s32, s32, s32, s32);
|
||||
Gfx* draw_box(Gfx*, s32, s32, s32, s32, u32, u32, u32, u32);
|
||||
Gfx* draw_box_wide(Gfx*, s32, s32, s32, s32, u32, u32, u32, u32);
|
||||
Gfx* func_80098FC8(Gfx*, s32, s32, s32, s32);
|
||||
void dma_copy_base_729a30(u64*, size_t, void*);
|
||||
void dma_copy_base_7fa3c0(u64*, size_t, void*);
|
||||
void dma_compressed_mio0_texture_segA(u64*, size_t, void*);
|
||||
void dma_tkmk00_textures(u64*, size_t, void*);
|
||||
void func_80099110(void);
|
||||
void load_menu_img(MkTexture*);
|
||||
void load_menu_img(MenuTexture*);
|
||||
void* segmented_to_virtual_dupe(const void*);
|
||||
void* segmented_to_virtual_dupe_2(const void*);
|
||||
void load_img_wrap(MkTexture*);
|
||||
void load_menu_img2(MkTexture*, s32);
|
||||
void func_80099958(MkTexture*, s32, s32);
|
||||
void load_menu_img_mio0_forced(MenuTexture*);
|
||||
void load_menu_img_comp_type(MenuTexture*, s32);
|
||||
void func_80099958(MenuTexture*, s32, s32);
|
||||
void func_80099E54(void);
|
||||
void func_80099E60(MkTexture*, s32, s32);
|
||||
void func_80099E60(MenuTexture*, s32, s32);
|
||||
void func_80099EC4(void);
|
||||
void func_80099A70(void);
|
||||
void func_80099A94(MkTexture*, s32);
|
||||
void func_80099A94(MenuTexture*, s32);
|
||||
void func_80099AEC(void);
|
||||
void func_8009A238(MkTexture*, s32);
|
||||
void func_8009A238(MenuTexture*, s32);
|
||||
void func_8009A2F0(struct_8018E0E8_entry*);
|
||||
void func_8009A344(void);
|
||||
s32 animate_character_select_menu(MkAnimation*);
|
||||
@@ -201,8 +201,8 @@ void func_8009A640(s32, s32, s32, MkAnimation*);
|
||||
void func_8009A6D4(void);
|
||||
void func_8009A76C(s32, s32, s32, s32);
|
||||
void func_8009A7EC(s32, s32, s32, s32, s32);
|
||||
MkTexture* func_8009A878(struct_8018DEE0_entry*);
|
||||
MkTexture* func_8009A944(struct_8018DEE0_entry*, s32);
|
||||
MenuTexture* func_8009A878(struct_8018DEE0_entry*);
|
||||
MenuTexture* func_8009A944(struct_8018DEE0_entry*, s32);
|
||||
void func_8009A9FC(s32, s32, u32, s32);
|
||||
void func_8009AB7C(s32);
|
||||
void func_8009AD78(s32, s32);
|
||||
@@ -210,13 +210,13 @@ void convert_img_to_greyscale(s32, u32);
|
||||
void adjust_img_colour(s32, s32, s32, s32, s32);
|
||||
u16* func_8009B8C4(u64*);
|
||||
void func_8009B938(void);
|
||||
void func_8009B954(MkTexture*);
|
||||
void func_8009B954(MenuTexture*);
|
||||
void func_8009B998(void);
|
||||
Gfx* func_8009B9D0(Gfx*, MkTexture*);
|
||||
Gfx* func_8009BA74(Gfx*, MkTexture*, s32, s32);
|
||||
Gfx* func_8009BC9C(Gfx*, MkTexture*, s32, s32, s32, s32);
|
||||
Gfx* print_letter(Gfx*, MkTexture*, f32, f32, s32, f32, f32);
|
||||
Gfx* func_8009C204(Gfx*, MkTexture*, s32, s32, s32);
|
||||
Gfx* func_8009B9D0(Gfx*, MenuTexture*);
|
||||
Gfx* render_menu_textures(Gfx*, MenuTexture*, s32, s32);
|
||||
Gfx* func_8009BC9C(Gfx*, MenuTexture*, s32, s32, s32, s32);
|
||||
Gfx* print_letter(Gfx*, MenuTexture*, f32, f32, s32, f32, f32);
|
||||
Gfx* func_8009C204(Gfx*, MenuTexture*, s32, s32, s32);
|
||||
Gfx* func_8009C434(Gfx*, struct_8018DEE0_entry*, s32, s32, s32);
|
||||
Gfx* func_8009C708(Gfx*, struct_8018DEE0_entry*, s32, s32, s32, s32);
|
||||
void func_8009C918(void);
|
||||
@@ -252,65 +252,65 @@ void func_8009E2A8(s32);
|
||||
void func_8009E2F0(s32);
|
||||
void func_8009E5BC(void);
|
||||
void func_8009E5FC(s32);
|
||||
void func_8009E620(void);
|
||||
void add_ui_element(s32, s32, s32, s8);
|
||||
void func_8009F5E0(struct_8018D9E0_entry*);
|
||||
void clear_menus(void);
|
||||
void add_menu_item(s32, s32, s32, s8);
|
||||
void render_menus(MenuItem*);
|
||||
void func_800A08D8(u8, s32, s32);
|
||||
s32 func_800A095C(char*, s32, s32, s32);
|
||||
void func_800A09E0(struct_8018D9E0_entry*);
|
||||
void func_800A0AD0(struct_8018D9E0_entry*);
|
||||
void func_800A0B80(struct_8018D9E0_entry*);
|
||||
void func_800A09E0(MenuItem*);
|
||||
void func_800A0AD0(MenuItem*);
|
||||
void func_800A0B80(MenuItem*);
|
||||
void func_800A0DFC(void);
|
||||
void func_800A0EB8(struct_8018D9E0_entry*, s32);
|
||||
void func_800A0FA4(struct_8018D9E0_entry*, s32);
|
||||
void func_800A10CC(struct_8018D9E0_entry*);
|
||||
void func_800A11D0(struct_8018D9E0_entry*, s32, s32);
|
||||
void func_800A12BC(struct_8018D9E0_entry*, MkTexture*);
|
||||
void func_800A1350(struct_8018D9E0_entry*);
|
||||
void func_800A143C(struct_8018D9E0_entry*, s32);
|
||||
void func_800A1500(struct_8018D9E0_entry*);
|
||||
void func_800A15EC(struct_8018D9E0_entry*);
|
||||
void func_800A1780(struct_8018D9E0_entry*);
|
||||
void func_800A1924(struct_8018D9E0_entry*);
|
||||
void func_800A1A20(struct_8018D9E0_entry*);
|
||||
void func_800A1BE0(struct_8018D9E0_entry*);
|
||||
void func_800A1DE0(struct_8018D9E0_entry*);
|
||||
void func_800A1F30(struct_8018D9E0_entry*);
|
||||
void func_800A1FB0(struct_8018D9E0_entry*);
|
||||
void func_800A2D1C(struct_8018D9E0_entry*);
|
||||
void func_800A2EB8(struct_8018D9E0_entry*);
|
||||
void func_800A0EB8(MenuItem*, s32);
|
||||
void func_800A0FA4(MenuItem*, s32);
|
||||
void func_800A10CC(MenuItem*);
|
||||
void func_800A11D0(MenuItem*, s32, s32);
|
||||
void func_800A12BC(MenuItem*, MenuTexture*);
|
||||
void func_800A1350(MenuItem*);
|
||||
void func_800A143C(MenuItem*, s32);
|
||||
void func_800A1500(MenuItem*);
|
||||
void func_800A15EC(MenuItem*);
|
||||
void func_800A1780(MenuItem*);
|
||||
void func_800A1924(MenuItem*);
|
||||
void func_800A1A20(MenuItem*);
|
||||
void func_800A1BE0(MenuItem*);
|
||||
void func_800A1DE0(MenuItem*);
|
||||
void func_800A1F30(MenuItem*);
|
||||
void func_800A1FB0(MenuItem*);
|
||||
void func_800A2D1C(MenuItem*);
|
||||
void func_800A2EB8(MenuItem*);
|
||||
void func_800A32B4(s32, s32, s32, s32);
|
||||
void func_800A34A8(struct_8018D9E0_entry*);
|
||||
void func_800A34A8(MenuItem*);
|
||||
void func_800A3A10(s8*);
|
||||
void func_800A3ADC(struct_8018D9E0_entry*, s32, s32, s32, s32, s8*);
|
||||
void func_800A3C84(struct_8018D9E0_entry*);
|
||||
void func_800A3E60(struct_8018D9E0_entry*);
|
||||
void func_800A3ADC(MenuItem*, s32, s32, s32, s32, s8*);
|
||||
void func_800A3C84(MenuItem*);
|
||||
void func_800A3E60(MenuItem*);
|
||||
void func_800A4550(s32, s32, s32);
|
||||
void func_800A474C(s32, s32, s32);
|
||||
void func_800A4A24(struct_8018D9E0_entry*);
|
||||
void render_pause_menu(struct_8018D9E0_entry*);
|
||||
void render_pause_menu_time_trials(struct_8018D9E0_entry*);
|
||||
void render_pause_menu_versus(struct_8018D9E0_entry*);
|
||||
void render_pause_grand_prix(struct_8018D9E0_entry*);
|
||||
void render_pause_battle(struct_8018D9E0_entry*);
|
||||
void render_lap_times(s32, s32, s32);
|
||||
void func_800A4A24(MenuItem*);
|
||||
void render_pause_menu(MenuItem*);
|
||||
void render_pause_menu_time_trials(MenuItem*);
|
||||
void render_pause_menu_versus(MenuItem*);
|
||||
void render_pause_grand_prix(MenuItem*);
|
||||
void render_pause_battle(MenuItem*);
|
||||
void func_800A54EC(void);
|
||||
void func_800A5738(struct_8018D9E0_entry*);
|
||||
void func_800A6034(struct_8018D9E0_entry*);
|
||||
void func_800A6154(struct_8018D9E0_entry*);
|
||||
void func_800A638C(struct_8018D9E0_entry*);
|
||||
void func_800A66A8(struct_8018D9E0_entry*, Unk_D_800E70A0*);
|
||||
void func_800A69C8(struct_8018D9E0_entry*);
|
||||
void func_800A6BEC(struct_8018D9E0_entry*);
|
||||
void func_800A6CC0(struct_8018D9E0_entry*);
|
||||
void func_800A5738(MenuItem*);
|
||||
void func_800A6034(MenuItem*);
|
||||
void func_800A6154(MenuItem*);
|
||||
void func_800A638C(MenuItem*);
|
||||
void func_800A66A8(MenuItem*, Unk_D_800E70A0*);
|
||||
void func_800A69C8(MenuItem*);
|
||||
void func_800A6BEC(MenuItem*);
|
||||
void func_800A6CC0(MenuItem*);
|
||||
void func_800A6D94(s32, s32, u8*);
|
||||
void func_800A6E94(s32, s32, u8*);
|
||||
void func_800A70E8(struct_8018D9E0_entry*);
|
||||
void func_800A7258(struct_8018D9E0_entry*);
|
||||
void func_800A72FC(struct_8018D9E0_entry*);
|
||||
void func_800A7448(struct_8018D9E0_entry*);
|
||||
void func_800A75A0(struct_8018D9E0_entry*);
|
||||
void func_800A761C(struct_8018D9E0_entry*);
|
||||
void func_800A7790(struct_8018D9E0_entry*);
|
||||
void func_800A70E8(MenuItem*);
|
||||
void func_800A7258(MenuItem*);
|
||||
void func_800A72FC(MenuItem*);
|
||||
void func_800A7448(MenuItem*);
|
||||
void func_800A75A0(MenuItem*);
|
||||
void func_800A761C(MenuItem*);
|
||||
void func_800A7790(MenuItem*);
|
||||
void convert_number_to_ascii(s32, char*);
|
||||
void write_dashes(char*);
|
||||
void get_time_record_minutes(s32, char*);
|
||||
@@ -318,90 +318,90 @@ void get_time_record_seconds(s32, char*);
|
||||
void get_time_record_centiseconds(s32, char*);
|
||||
void func_800A79F4(s32, char*);
|
||||
void func_800A7A4C(s32);
|
||||
void func_800A8230(void);
|
||||
void func_800A8250(void);
|
||||
void func_800A8270(s32, struct_8018D9E0_entry*);
|
||||
void func_800A8564(struct_8018D9E0_entry*);
|
||||
void func_800A86E8(struct_8018D9E0_entry*);
|
||||
void func_800A874C(struct_8018D9E0_entry*);
|
||||
void func_800A890C(s32, struct_8018D9E0_entry*);
|
||||
void func_800A8A98(struct_8018D9E0_entry*);
|
||||
void func_800A8CA4(struct_8018D9E0_entry*);
|
||||
void func_800A8E14(struct_8018D9E0_entry*);
|
||||
void func_800A8EC0(struct_8018D9E0_entry*);
|
||||
void func_800A8F48(struct_8018D9E0_entry*);
|
||||
void func_800A90D4(s32, struct_8018D9E0_entry*);
|
||||
void func_800A91D8(struct_8018D9E0_entry*, s32, s32);
|
||||
void func_800A9208(struct_8018D9E0_entry*, s32);
|
||||
void func_800A9278(struct_8018D9E0_entry*, s32);
|
||||
void func_800A92E8(struct_8018D9E0_entry*, s32);
|
||||
void func_800A939C(struct_8018D9E0_entry*, s32);
|
||||
void func_800A940C(struct_8018D9E0_entry*, s32);
|
||||
void func_800A94C8(struct_8018D9E0_entry*, s32, s32);
|
||||
void func_800A954C(struct_8018D9E0_entry*);
|
||||
void func_800A9710(struct_8018D9E0_entry*);
|
||||
void func_800A97BC(struct_8018D9E0_entry*);
|
||||
void func_800A9A98(struct_8018D9E0_entry*);
|
||||
void func_800A9B9C(struct_8018D9E0_entry*);
|
||||
void func_800A9C40(struct_8018D9E0_entry*);
|
||||
void func_800A9D5C(struct_8018D9E0_entry*);
|
||||
void func_800A9E58(struct_8018D9E0_entry*);
|
||||
void func_800AA280(struct_8018D9E0_entry*);
|
||||
void func_800AA2EC(struct_8018D9E0_entry*);
|
||||
void func_800AA5C8(struct_8018D9E0_entry*, s8);
|
||||
void func_800AA69C(struct_8018D9E0_entry*);
|
||||
void func_800AAA9C(struct_8018D9E0_entry*);
|
||||
void func_800AAB90(struct_8018D9E0_entry*);
|
||||
void func_800AAC18(struct_8018D9E0_entry*);
|
||||
void func_800AADD4(struct_8018D9E0_entry*);
|
||||
void func_800AAE18(struct_8018D9E0_entry*);
|
||||
struct_8018D9E0_entry* func_800AAE68(void);
|
||||
struct_8018D9E0_entry* func_800AAEB4(s32);
|
||||
struct_8018D9E0_entry* find_8018D9E0_entry_dupe(s32);
|
||||
struct_8018D9E0_entry* find_8018D9E0_entry(s32);
|
||||
void handle_menus_default(void);
|
||||
void handle_menus_special(void);
|
||||
void func_800A8270(s32, MenuItem*);
|
||||
void func_800A8564(MenuItem*);
|
||||
void func_800A86E8(MenuItem*);
|
||||
void func_800A874C(MenuItem*);
|
||||
void func_800A890C(s32, MenuItem*);
|
||||
void func_800A8A98(MenuItem*);
|
||||
void func_800A8CA4(MenuItem*);
|
||||
void func_800A8E14(MenuItem*);
|
||||
void func_800A8EC0(MenuItem*);
|
||||
void func_800A8F48(MenuItem*);
|
||||
void func_800A90D4(s32, MenuItem*);
|
||||
void func_800A91D8(MenuItem*, s32, s32);
|
||||
void func_800A9208(MenuItem*, s32);
|
||||
void func_800A9278(MenuItem*, s32);
|
||||
void func_800A92E8(MenuItem*, s32);
|
||||
void func_800A939C(MenuItem*, s32);
|
||||
void func_800A940C(MenuItem*, s32);
|
||||
void func_800A94C8(MenuItem*, s32, s32);
|
||||
void func_800A954C(MenuItem*);
|
||||
void func_800A9710(MenuItem*);
|
||||
void func_800A97BC(MenuItem*);
|
||||
void func_800A9A98(MenuItem*);
|
||||
void func_800A9B9C(MenuItem*);
|
||||
void func_800A9C40(MenuItem*);
|
||||
void func_800A9D5C(MenuItem*);
|
||||
void func_800A9E58(MenuItem*);
|
||||
void func_800AA280(MenuItem*);
|
||||
void func_800AA2EC(MenuItem*);
|
||||
void func_800AA5C8(MenuItem*, s8);
|
||||
void func_800AA69C(MenuItem*);
|
||||
void func_800AAA9C(MenuItem*);
|
||||
void func_800AAB90(MenuItem*);
|
||||
void func_800AAC18(MenuItem*);
|
||||
void func_800AADD4(MenuItem*);
|
||||
void func_800AAE18(MenuItem*);
|
||||
MenuItem* func_800AAE68(void);
|
||||
MenuItem* func_800AAEB4(s32);
|
||||
MenuItem* find_menu_items_dupe(s32);
|
||||
MenuItem* find_menu_items(s32);
|
||||
s32 func_800AAF70(s32);
|
||||
void func_800AAF94(struct_8018D9E0_entry*, s32);
|
||||
void func_800AAF94(MenuItem*, s32);
|
||||
s32 func_800AAFCC(s32);
|
||||
void func_800AB020(struct_8018D9E0_entry*);
|
||||
void func_800AB098(struct_8018D9E0_entry*);
|
||||
void func_800AB164(struct_8018D9E0_entry*);
|
||||
void func_800AB260(struct_8018D9E0_entry*);
|
||||
void func_800AB290(struct_8018D9E0_entry*);
|
||||
void func_800AB314(struct_8018D9E0_entry*);
|
||||
void func_800AB904(struct_8018D9E0_entry*);
|
||||
void func_800AB9B0(struct_8018D9E0_entry*);
|
||||
void func_800ABAE8(struct_8018D9E0_entry*);
|
||||
void func_800ABB24(struct_8018D9E0_entry*);
|
||||
void func_800ABBCC(struct_8018D9E0_entry*);
|
||||
void func_800ABC38(struct_8018D9E0_entry*);
|
||||
void func_800ABCF4(struct_8018D9E0_entry*);
|
||||
void func_800ABEAC(struct_8018D9E0_entry*);
|
||||
void func_800ABF68(struct_8018D9E0_entry*);
|
||||
void func_800AC128(struct_8018D9E0_entry*);
|
||||
void func_800AC300(struct_8018D9E0_entry*);
|
||||
void func_800AC324(struct_8018D9E0_entry*);
|
||||
void func_800AC458(struct_8018D9E0_entry*);
|
||||
void func_800AC978(struct_8018D9E0_entry*);
|
||||
void func_800ACA14(struct_8018D9E0_entry*);
|
||||
void func_800ACC50(struct_8018D9E0_entry*);
|
||||
void func_800ACF40(struct_8018D9E0_entry*);
|
||||
void func_800AD1A4(struct_8018D9E0_entry*);
|
||||
void func_800AD2E8(struct_8018D9E0_entry*);
|
||||
void func_800ADF48(struct_8018D9E0_entry*);
|
||||
void func_800AE218(struct_8018D9E0_entry*);
|
||||
void func_800AEC54(struct_8018D9E0_entry*);
|
||||
void func_800AEDBC(struct_8018D9E0_entry*);
|
||||
void func_800AEE90(struct_8018D9E0_entry*);
|
||||
void func_800AEEBC(struct_8018D9E0_entry*);
|
||||
void func_800AEEE8(struct_8018D9E0_entry*);
|
||||
void func_800AEF14(struct_8018D9E0_entry*);
|
||||
void func_800AEF74(struct_8018D9E0_entry*);
|
||||
void func_800AF004(struct_8018D9E0_entry*);
|
||||
void func_800AF1AC(struct_8018D9E0_entry*);
|
||||
void func_800AF270(struct_8018D9E0_entry*);
|
||||
void func_800AF480(struct_8018D9E0_entry*);
|
||||
void func_800AF4DC(struct_8018D9E0_entry*);
|
||||
void func_800AF740(struct_8018D9E0_entry*);
|
||||
void func_800AB020(MenuItem*);
|
||||
void func_800AB098(MenuItem*);
|
||||
void func_800AB164(MenuItem*);
|
||||
void func_800AB260(MenuItem*);
|
||||
void func_800AB290(MenuItem*);
|
||||
void func_800AB314(MenuItem*);
|
||||
void func_800AB904(MenuItem*);
|
||||
void func_800AB9B0(MenuItem*);
|
||||
void func_800ABAE8(MenuItem*);
|
||||
void func_800ABB24(MenuItem*);
|
||||
void func_800ABBCC(MenuItem*);
|
||||
void func_800ABC38(MenuItem*);
|
||||
void func_800ABCF4(MenuItem*);
|
||||
void func_800ABEAC(MenuItem*);
|
||||
void func_800ABF68(MenuItem*);
|
||||
void func_800AC128(MenuItem*);
|
||||
void func_800AC300(MenuItem*);
|
||||
void func_800AC324(MenuItem*);
|
||||
void func_800AC458(MenuItem*);
|
||||
void func_800AC978(MenuItem*);
|
||||
void func_800ACA14(MenuItem*);
|
||||
void func_800ACC50(MenuItem*);
|
||||
void func_800ACF40(MenuItem*);
|
||||
void func_800AD1A4(MenuItem*);
|
||||
void func_800AD2E8(MenuItem*);
|
||||
void func_800ADF48(MenuItem*);
|
||||
void func_800AE218(MenuItem*);
|
||||
void func_800AEC54(MenuItem*);
|
||||
void func_800AEDBC(MenuItem*);
|
||||
void func_800AEE90(MenuItem*);
|
||||
void func_800AEEBC(MenuItem*);
|
||||
void func_800AEEE8(MenuItem*);
|
||||
void func_800AEF14(MenuItem*);
|
||||
void func_800AEF74(MenuItem*);
|
||||
void func_800AF004(MenuItem*);
|
||||
void func_800AF1AC(MenuItem*);
|
||||
void func_800AF270(MenuItem*);
|
||||
void func_800AF480(MenuItem*);
|
||||
void func_800AF4DC(MenuItem*);
|
||||
void func_800AF740(MenuItem*);
|
||||
|
||||
// This really, really shouldn't be in this header file, but I don't know where else to put it
|
||||
void rmonPrintf(const char*, ...);
|
||||
@@ -409,11 +409,11 @@ void tkmk00decode(u8*, u8*, u8*, s32);
|
||||
|
||||
/* File specific defines */
|
||||
|
||||
#define D_8018D9E0_SIZE 0x20
|
||||
#define MENU_ITEMS_MAX 0x20
|
||||
#define D_8018DEE0_SIZE 0x10
|
||||
#define D_8018E060_SIZE 0x10
|
||||
#define D_8018E0E8_SIZE 0x05
|
||||
#define D_8018E118_SIZE 0xC8
|
||||
#define TEXTURE_MAP_MAX 0xC8
|
||||
#define D_8018E768_SIZE 0x08
|
||||
#define D_8018E7E8_SIZE 0x05
|
||||
#define D_8018E810_SIZE 0x05
|
||||
@@ -423,23 +423,23 @@ void tkmk00decode(u8*, u8*, u8*, s32);
|
||||
extern s32 D_800DDB24;
|
||||
extern s16 D_80164478[];
|
||||
|
||||
extern u16* D_8018D9B0;
|
||||
extern u8* D_8018D9B4;
|
||||
extern u8* D_8018D9B8;
|
||||
extern u8* D_8018D9BC;
|
||||
extern void* D_8018D9C0;
|
||||
extern u16* gMenuTextureBuffer;
|
||||
extern u8* gMenuCompressedBuffer;
|
||||
extern u8* sTKMK00_LowResBuffer;
|
||||
extern u8* sGPPointsCopy;
|
||||
extern void* gSomeDLBuffer;
|
||||
extern s8 gGPPointsByCharacterId[8];
|
||||
extern s8 gCharacterIdByGPOverallRank[];
|
||||
extern s8 D_8018D9D8;
|
||||
extern s8 D_8018D9D9;
|
||||
extern struct_8018D9E0_entry D_8018D9E0[D_8018D9E0_SIZE];
|
||||
extern MenuItem gMenuItems[MENU_ITEMS_MAX];
|
||||
extern struct_8018DEE0_entry D_8018DEE0[D_8018DEE0_SIZE];
|
||||
extern struct_8018E060_entry D_8018E060[];
|
||||
extern struct_8018E0E8_entry D_8018E0E8[D_8018E0E8_SIZE];
|
||||
extern s32 gMenuTextureBufferIndex;
|
||||
extern struct_8018E118_entry D_8018E118[D_8018E118_SIZE];
|
||||
extern s32 gNumD_8018E118Entries;
|
||||
extern Gfx* D_8018E75C;
|
||||
extern struct_8018E118_entry sMenuTextureMap[TEXTURE_MAP_MAX];
|
||||
extern s32 sMenuTextureEntries;
|
||||
extern Gfx* sGfxPtr;
|
||||
extern s32 gNumD_8018E768Entries;
|
||||
extern struct_8018E768_entry D_8018E768[D_8018E768_SIZE];
|
||||
extern s32 gCycleFlashMenu;
|
||||
@@ -491,7 +491,7 @@ extern RGBA16 D_800E74E8[];
|
||||
extern const s16 gGlyphDisplayWidth[];
|
||||
extern char* gCupNames[];
|
||||
extern const s8 D_800EFD64[];
|
||||
extern char* D_800E7678[];
|
||||
extern char* gCupText[];
|
||||
extern char* gDebugCharacterNames[];
|
||||
extern char* D_800E76A8[];
|
||||
extern char* D_800E76CC[];
|
||||
@@ -499,23 +499,23 @@ extern char* D_800E76DC[];
|
||||
extern char* gDebugScreenModeNames[];
|
||||
extern char* gDebugSoundModeNames[];
|
||||
extern char* gSoundModeNames[]; // D_800E7710
|
||||
extern char* D_800E7720[];
|
||||
extern char* D_800E7728[];
|
||||
extern char* D_800E7730;
|
||||
extern char* D_800E7734[];
|
||||
extern char* gWinLoseText[];
|
||||
extern char* gBestTimeText[];
|
||||
extern char* gLapTimeText;
|
||||
extern char* gPrefixTimeText[];
|
||||
extern char* D_800E7744[];
|
||||
extern char* gTextPauseButton[];
|
||||
extern char* D_800E7778[];
|
||||
extern char D_800E7780[];
|
||||
extern char* D_800E77A0[];
|
||||
extern char* D_800E77A8[];
|
||||
extern char D_800E77B4[];
|
||||
extern char D_800E77D8[];
|
||||
extern char* D_800E7834[];
|
||||
extern char gTextMenuAnnounceGhost[];
|
||||
extern char* gTextNoController[];
|
||||
extern char* gTextBattleIntroduction[];
|
||||
extern char gTextMenuData[];
|
||||
extern char gTextDistance[];
|
||||
extern char* gTextMenuOption[];
|
||||
extern char* D_800E7840[];
|
||||
extern char* D_800E7848[];
|
||||
extern char* gEraseBestGhostText[];
|
||||
extern char* D_800E7860[];
|
||||
extern char* D_800E7868[];
|
||||
extern char* gTextOptionMenu[];
|
||||
extern char* D_800E7878[];
|
||||
extern char* D_800E7884[];
|
||||
extern char* D_800E7890[];
|
||||
@@ -541,7 +541,7 @@ extern char* D_800E7A80[];
|
||||
extern char* D_800E7A88[];
|
||||
extern char* D_800E7A98;
|
||||
extern char* D_800E7A9C[];
|
||||
extern char* D_800E7AA4[];
|
||||
extern char* gPlaceText[];
|
||||
extern const s8 gGPPointRewards[];
|
||||
extern const s8 D_800F0B1C[];
|
||||
extern const s8 D_800F0B28[];
|
||||
@@ -549,32 +549,31 @@ extern const s8 D_800F0B50[];
|
||||
extern const s8 D_800F0B54[];
|
||||
extern RGBA16 D_800E7AC8[];
|
||||
extern RGBA16 D_800E7AE8[];
|
||||
extern MkTexture* D_800E7AF8[];
|
||||
extern MkTexture* D_800E7D0C[];
|
||||
extern MenuTexture* D_800E7AF8[];
|
||||
extern MenuTexture* D_800E7D0C[];
|
||||
extern MkAnimation* D_800E7D34[];
|
||||
extern MkTexture* D_800E7D4C[];
|
||||
extern MkTexture* D_800E7D54[];
|
||||
extern MkTexture* D_800E7D74[];
|
||||
extern MkTexture* D_800E7DC4[];
|
||||
extern MenuTexture* gMenuTexturesBackground[];
|
||||
extern MenuTexture* D_800E7D54[];
|
||||
extern MenuTexture* D_800E7D74[];
|
||||
extern MenuTexture* D_800E7DC4[];
|
||||
extern MkAnimation* D_800E7E14[];
|
||||
extern MkAnimation* D_800E7E20[];
|
||||
extern MkAnimation* D_800E7E34[];
|
||||
extern MkTexture* gGlyphTextureLUT[];
|
||||
extern MkTexture* D_800E7FF0[];
|
||||
extern MkTexture* D_800E80A0[];
|
||||
extern MkTexture* D_800E8114[];
|
||||
extern MkTexture* D_800E8174[];
|
||||
extern MkTexture* D_800E817C[];
|
||||
extern MkTexture* D_800E81E4[];
|
||||
extern MkTexture* D_800E822C[];
|
||||
extern MkTexture* D_800E8234[];
|
||||
extern MkTexture* D_800E824C[];
|
||||
extern MkTexture* D_800E8254[];
|
||||
extern MkTexture* D_800E8274[];
|
||||
extern MkTexture* D_800E8294[];
|
||||
extern MkTexture* D_800E82B4[];
|
||||
extern MkTexture* D_800E82C4[];
|
||||
extern MkTexture* D_800E82F4[];
|
||||
extern MenuTexture* gGlyphTextureLUT[];
|
||||
extern MenuTexture* D_800E7FF0[];
|
||||
extern MenuTexture* D_800E80A0[];
|
||||
extern MenuTexture* D_800E8114[];
|
||||
extern MenuTexture* D_800E8174[];
|
||||
extern MenuTexture* D_800E817C[];
|
||||
extern MenuTexture* D_800E81E4[];
|
||||
extern MenuTexture* D_800E822C[];
|
||||
extern MenuTexture* D_800E8234[];
|
||||
extern MenuTexture* D_800E8254[];
|
||||
extern MenuTexture* D_800E8274[];
|
||||
extern MenuTexture* D_800E8294[];
|
||||
extern MenuTexture* gMenuTexturesBorderPlayer[];
|
||||
extern MenuTexture* gMenuTexturesTrackSelection[];
|
||||
extern MenuTexture* D_800E82F4[];
|
||||
extern MkAnimation* D_800E8320[];
|
||||
extern MkAnimation* D_800E8340[];
|
||||
extern MkAnimation* D_800E8360[];
|
||||
@@ -593,8 +592,8 @@ extern Gfx* D_800E84CC[];
|
||||
extern Gfx* D_800E84EC[];
|
||||
extern Gfx* D_800E850C[];
|
||||
extern s8 D_800E852C;
|
||||
extern f32 D_800E8530;
|
||||
extern f32 D_800E8534;
|
||||
extern f32 sIntroModelMotionSpeed;
|
||||
extern f32 sIntroModelSpeed;
|
||||
extern Unk_D_800E70A0 D_800E8538[];
|
||||
extern Unk_D_800E70A0 D_800E8540[];
|
||||
extern Unk_D_800E70A0 D_800E85C0[];
|
||||
+87
-87
@@ -12,7 +12,7 @@
|
||||
#include "audio/external.h"
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "code_800AF9B0.h"
|
||||
#include "save.h"
|
||||
#include "staff_ghosts.h"
|
||||
@@ -22,14 +22,14 @@
|
||||
#include "port/Game.h"
|
||||
|
||||
/** BSS **/
|
||||
s32 D_8018EDC0;
|
||||
f32 D_8018EDC4;
|
||||
f32 D_8018EDC8;
|
||||
f32 D_8018EDCC;
|
||||
f32 D_8018EDD0;
|
||||
f32 D_8018EDD4;
|
||||
f32 D_8018EDD8;
|
||||
f32 D_8018EDDC;
|
||||
s32 gIntroModelZEye;
|
||||
f32 gIntroModelScale;
|
||||
f32 gIntroModelRotX;
|
||||
f32 gIntroModelRotY;
|
||||
f32 gIntroModelRotZ;
|
||||
f32 gIntroModelPosX;
|
||||
f32 gIntroModelPosY;
|
||||
f32 gIntroModelPosZ;
|
||||
s32 D_8018EDE0;
|
||||
s8 gCharacterGridSelections[4]; // map from player id to current grid position
|
||||
s8 D_8018EDE8[4]; // map player id to isCharSelected on CSS
|
||||
@@ -52,7 +52,7 @@ s8 D_8018EDFB;
|
||||
s8 D_8018EDFC;
|
||||
s32 gMenuTimingCounter;
|
||||
s32 gMenuDelayTimer;
|
||||
s8 D_8018EE08;
|
||||
s8 gDemoUseController;
|
||||
s8 gCupSelection;
|
||||
s8 D_8018EE0A;
|
||||
s8 gCourseIndexInCup;
|
||||
@@ -61,7 +61,7 @@ struct_8018EE10_entry D_8018EE10[2];
|
||||
|
||||
/** Data **/
|
||||
s32 gMenuSelection = LOGO_INTRO_MENU;
|
||||
s32 D_800E86A4 = 0;
|
||||
s32 gFadeModeSelection = 0;
|
||||
s8 gCharacterSelections[4] = { MARIO, LUIGI, YOSHI, TOAD };
|
||||
|
||||
// gGameModeRowSelectionForNumPlayers is (D_800E86AC - 1)
|
||||
@@ -147,7 +147,7 @@ const union GameModePack gSoundMenuPack = { { SOUND_STEREO, SOUND_HEADPHONES, SO
|
||||
void update_menus(void) {
|
||||
u16 controllerIdx;
|
||||
|
||||
if (D_800E86A4 == 0) {
|
||||
if (gFadeModeSelection == 0) {
|
||||
for (controllerIdx = 0; controllerIdx < 4; controllerIdx++) {
|
||||
|
||||
// Debug, quick jump through menus using the start button.
|
||||
@@ -215,7 +215,7 @@ void update_menus(void) {
|
||||
// navigation of the options menu
|
||||
void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
u16 btnAndStick; // sp3E
|
||||
struct_8018D9E0_entry* sp38;
|
||||
MenuItem* sp38;
|
||||
s32 res;
|
||||
struct_8018EE10_entry* sp30;
|
||||
bool sp2C; // cursorWasMoved or communicateStoredAction
|
||||
@@ -228,8 +228,8 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
}
|
||||
|
||||
if (!func_800B4520()) {
|
||||
sp38 = find_8018D9E0_entry_dupe(0xF0);
|
||||
sp30 = (struct_8018EE10_entry*) D_8018D9C0;
|
||||
sp38 = find_menu_items_dupe(0xF0);
|
||||
sp30 = (struct_8018EE10_entry*) gSomeDLBuffer;
|
||||
switch (D_8018EDEC) {
|
||||
case 0x15:
|
||||
case 0x16:
|
||||
@@ -239,35 +239,35 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
if ((btnAndStick & D_JPAD) && (D_8018EDEC < 0x18)) {
|
||||
D_8018EDEC += 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = 1;
|
||||
sp38->subState = 1;
|
||||
sp2C = true;
|
||||
}
|
||||
if ((btnAndStick & U_JPAD) && (D_8018EDEC >= 0x16)) {
|
||||
D_8018EDEC -= 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp2C = true;
|
||||
sp38->unk8 = -1;
|
||||
sp38->subState = -1;
|
||||
}
|
||||
if (sp2C && gSoundMode != sp38->cursor) {
|
||||
if (sp2C && gSoundMode != sp38->state) {
|
||||
gSaveData.main.saveInfo.soundMode = gSoundMode;
|
||||
write_save_data_grand_prix_points_and_sound_mode();
|
||||
update_save_data_backup();
|
||||
sp38->cursor = gSoundMode;
|
||||
sp38->state = gSoundMode;
|
||||
}
|
||||
if (btnAndStick & B_BUTTON) {
|
||||
func_8009E280();
|
||||
play_sound2(SOUND_MENU_GO_BACK);
|
||||
if (gSoundMode != sp38->cursor) {
|
||||
if (gSoundMode != sp38->state) {
|
||||
gSaveData.main.saveInfo.soundMode = gSoundMode;
|
||||
write_save_data_grand_prix_points_and_sound_mode();
|
||||
update_save_data_backup();
|
||||
sp38->cursor = gSoundMode;
|
||||
sp38->state = gSoundMode;
|
||||
}
|
||||
return;
|
||||
}
|
||||
@@ -307,7 +307,7 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
switch (sp2C) {
|
||||
case PFS_INVALID_DATA:
|
||||
D_8018EDEC = 0x46;
|
||||
sp38->cursor = 0;
|
||||
sp38->state = 0;
|
||||
play_sound2(SOUND_MENU_SELECT);
|
||||
break;
|
||||
case PFS_NO_ERROR:
|
||||
@@ -378,18 +378,18 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
if ((btnAndStick & D_JPAD) && (D_8018EDEC < 0x1F)) {
|
||||
D_8018EDEC += 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = 1;
|
||||
sp38->subState = 1;
|
||||
}
|
||||
if ((btnAndStick & U_JPAD) && (D_8018EDEC >= 0x1F)) {
|
||||
D_8018EDEC -= 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = -1;
|
||||
sp38->subState = -1;
|
||||
}
|
||||
if (btnAndStick & B_BUTTON) {
|
||||
D_8018EDEC = 0x18;
|
||||
@@ -424,18 +424,18 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
if ((btnAndStick & D_JPAD) && (D_8018EDEC < 0x29) && (sp30[1].ghostDataSaved)) {
|
||||
D_8018EDEC += 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = 1;
|
||||
sp38->subState = 1;
|
||||
}
|
||||
if ((btnAndStick & U_JPAD) && (D_8018EDEC >= 0x29) && sp30[0].ghostDataSaved) {
|
||||
D_8018EDEC -= 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = -1;
|
||||
sp38->subState = -1;
|
||||
}
|
||||
if (btnAndStick & B_BUTTON) {
|
||||
D_8018EDEC = 0x17;
|
||||
@@ -443,8 +443,8 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
return;
|
||||
}
|
||||
if (btnAndStick & A_BUTTON) {
|
||||
sp38->unk20 = D_8018EDEC - 0x28;
|
||||
if (sp30[sp38->unk20].courseIndex == D_8018EE10[1].courseIndex && D_8018EE10[1].ghostDataSaved) {
|
||||
sp38->param2 = D_8018EDEC - 0x28;
|
||||
if (sp30[sp38->param2].courseIndex == D_8018EE10[1].courseIndex && D_8018EE10[1].ghostDataSaved) {
|
||||
D_8018EDEC = 0x33;
|
||||
} else {
|
||||
D_8018EDEC = 0x32;
|
||||
@@ -456,35 +456,35 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
case 0x32:
|
||||
case 0x33: {
|
||||
// bit of a fake match, but if it works it works?
|
||||
if ((sp30[sp38->unk20].courseIndex != ((0, (D_8018EE10 + (D_8018EDEC - 0x32))->courseIndex))) ||
|
||||
if ((sp30[sp38->param2].courseIndex != ((0, (D_8018EE10 + (D_8018EDEC - 0x32))->courseIndex))) ||
|
||||
((D_8018EE10 + (D_8018EDEC - 0x32))->ghostDataSaved == 0)) {
|
||||
if ((btnAndStick & D_JPAD) && (D_8018EDEC < 0x33)) {
|
||||
D_8018EDEC += 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = 1;
|
||||
sp38->subState = 1;
|
||||
}
|
||||
if ((btnAndStick & U_JPAD) && (D_8018EDEC >= 0x33)) {
|
||||
D_8018EDEC -= 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = -1;
|
||||
sp38->subState = -1;
|
||||
}
|
||||
}
|
||||
if (btnAndStick & B_BUTTON) {
|
||||
D_8018EDEC = sp38->unk20 + 0x28;
|
||||
D_8018EDEC = sp38->param2 + 0x28;
|
||||
play_sound2(SOUND_MENU_GO_BACK);
|
||||
} else if (btnAndStick & A_BUTTON) {
|
||||
sp38->unk1C = D_8018EDEC - 0x32;
|
||||
if (D_8018EE10[(sp38->unk1C)].ghostDataSaved) {
|
||||
sp38->param1 = D_8018EDEC - 0x32;
|
||||
if (D_8018EE10[(sp38->param1)].ghostDataSaved) {
|
||||
D_8018EDEC = 0x38;
|
||||
} else {
|
||||
D_8018EDEC = 0x3A;
|
||||
sp38->cursor = 0;
|
||||
sp38->state = 0;
|
||||
}
|
||||
play_sound2(SOUND_MENU_SELECT);
|
||||
}
|
||||
@@ -511,21 +511,21 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
if ((btnAndStick & R_JPAD) && D_8018EDEC < 0x39) {
|
||||
D_8018EDEC += 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = 1;
|
||||
sp38->subState = 1;
|
||||
}
|
||||
if ((btnAndStick & L_JPAD) && D_8018EDEC >= 0x39) {
|
||||
D_8018EDEC -= 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp38->unk24 < 4.2) {
|
||||
sp38->unk24 += 4.0;
|
||||
if (sp38->paramf < 4.2) {
|
||||
sp38->paramf += 4.0;
|
||||
}
|
||||
sp38->unk8 = -1;
|
||||
sp38->subState = -1;
|
||||
}
|
||||
if (btnAndStick & B_BUTTON) {
|
||||
D_8018EDEC = sp38->unk1C + 0x32;
|
||||
D_8018EDEC = sp38->param1 + 0x32;
|
||||
play_sound2(SOUND_MENU_GO_BACK);
|
||||
return;
|
||||
}
|
||||
@@ -536,7 +536,7 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
} else {
|
||||
D_8018EDEC = 0x3A;
|
||||
play_sound2(SOUND_MENU_SELECT);
|
||||
sp38->cursor = 0;
|
||||
sp38->state = 0;
|
||||
}
|
||||
}
|
||||
// return?
|
||||
@@ -544,9 +544,9 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
}
|
||||
case 0x3A: {
|
||||
if (arg1 == 0) {
|
||||
sp38->cursor += 1;
|
||||
sp38->state += 1;
|
||||
}
|
||||
if (sp38->cursor >= 3) {
|
||||
if (sp38->state >= 3) {
|
||||
D_8018EDEC = 0x3B;
|
||||
}
|
||||
break;
|
||||
@@ -554,7 +554,7 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
case 0x3B: {
|
||||
res = controller_pak_2_status();
|
||||
if (res == PFS_NO_ERROR) {
|
||||
res = func_800B65F4(sp38->unk20, sp38->unk1C);
|
||||
res = func_800B65F4(sp38->param2, sp38->param1);
|
||||
}
|
||||
if (res != 0) {
|
||||
D_8018EDEC = 0x42;
|
||||
@@ -564,7 +564,7 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
res = osPfsFindFile(&gControllerPak1FileHandle, gCompanyCode, gGameCode, (u8*) gGameName,
|
||||
(u8*) gExtCode, &gControllerPak1FileNote);
|
||||
if (res == PFS_NO_ERROR) {
|
||||
res = func_800B6178(sp38->unk1C);
|
||||
res = func_800B6178(sp38->param1);
|
||||
}
|
||||
if (res != 0) {
|
||||
D_8018EDEC = 0x41;
|
||||
@@ -572,15 +572,15 @@ void options_menu_act(struct Controller* controller, u16 arg1) {
|
||||
return;
|
||||
}
|
||||
D_8018EDEC = 0x3C;
|
||||
D_8018EE10[sp38->unk1C].courseIndex = (sp30 + sp38->unk20)->courseIndex;
|
||||
func_800B6088(sp38->unk1C);
|
||||
D_8018EE10[sp38->param1].courseIndex = (sp30 + sp38->param2)->courseIndex;
|
||||
func_800B6088(sp38->param1);
|
||||
break;
|
||||
}
|
||||
case 0x46: {
|
||||
if (arg1 == 0) {
|
||||
sp38->cursor += 1;
|
||||
sp38->state += 1;
|
||||
}
|
||||
if (sp38->cursor >= 3) {
|
||||
if (sp38->state >= 3) {
|
||||
D_8018EDEC = 0x47;
|
||||
}
|
||||
break;
|
||||
@@ -665,7 +665,7 @@ void data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
|
||||
void course_data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
u16 btnAndStick; // sp2E
|
||||
struct_8018D9E0_entry* sp28;
|
||||
MenuItem* sp28;
|
||||
CourseTimeTrialRecords* sp24;
|
||||
s32 res;
|
||||
|
||||
@@ -688,7 +688,7 @@ void course_data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
}
|
||||
|
||||
sp28 = find_8018D9E0_entry_dupe(0xE8);
|
||||
sp28 = find_menu_items_dupe(0xE8);
|
||||
sp24 = &gSaveData.allCourseTimeTrialRecords.cupRecords[gTimeTrialDataCourseIndex / 4]
|
||||
.courseRecords[gTimeTrialDataCourseIndex % 4];
|
||||
if (gCourseRecordsMenuSelection == 2 && func_800B639C(gTimeTrialDataCourseIndex) < 0) {
|
||||
@@ -705,10 +705,10 @@ void course_data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
gCourseRecordsMenuSelection -= 1;
|
||||
}
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp28->unk24 < 4.2) {
|
||||
sp28->unk24 += 4.0;
|
||||
if (sp28->paramf < 4.2) {
|
||||
sp28->paramf += 4.0;
|
||||
}
|
||||
sp28->unk8 = -1;
|
||||
sp28->subState = -1;
|
||||
}
|
||||
|
||||
if ((btnAndStick & D_JPAD) && (gCourseRecordsMenuSelection < 2)) {
|
||||
@@ -725,10 +725,10 @@ void course_data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
}
|
||||
} else {
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp28->unk24 < 4.2) {
|
||||
sp28->unk24 += 4.0;
|
||||
if (sp28->paramf < 4.2) {
|
||||
sp28->paramf += 4.0;
|
||||
}
|
||||
sp28->unk8 = 1;
|
||||
sp28->subState = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -736,8 +736,8 @@ void course_data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
func_8009E208();
|
||||
play_sound2(SOUND_MENU_GO_BACK);
|
||||
} else if (btnAndStick & A_BUTTON) {
|
||||
if (sp28->unk24 < 4.2) {
|
||||
sp28->unk24 += 4.0;
|
||||
if (sp28->paramf < 4.2) {
|
||||
sp28->paramf += 4.0;
|
||||
}
|
||||
if (gCourseRecordsMenuSelection == 0) {
|
||||
func_8009E208();
|
||||
@@ -751,23 +751,23 @@ void course_data_menu_act(struct Controller* controller, UNUSED u16 arg1) {
|
||||
break;
|
||||
}
|
||||
case 0x0C: {
|
||||
sp28 = find_8018D9E0_entry_dupe(0xE9);
|
||||
sp28 = find_menu_items_dupe(0xE9);
|
||||
if ((btnAndStick & U_JPAD) && (D_8018EDF9 > 0)) {
|
||||
D_8018EDF9 -= 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp28->unk24 < 4.2) {
|
||||
sp28->unk24 += 4.0;
|
||||
if (sp28->paramf < 4.2) {
|
||||
sp28->paramf += 4.0;
|
||||
}
|
||||
sp28->unk8 = -1;
|
||||
sp28->subState = -1;
|
||||
}
|
||||
|
||||
if ((btnAndStick & D_JPAD) && (D_8018EDF9 <= 0)) {
|
||||
D_8018EDF9 += 1;
|
||||
play_sound2(SOUND_MENU_CURSOR_MOVE);
|
||||
if (sp28->unk24 < 4.2) {
|
||||
sp28->unk24 += 4.0;
|
||||
if (sp28->paramf < 4.2) {
|
||||
sp28->paramf += 4.0;
|
||||
}
|
||||
sp28->unk8 = 1;
|
||||
sp28->subState = 1;
|
||||
}
|
||||
|
||||
if (btnAndStick & B_BUTTON) {
|
||||
@@ -1799,13 +1799,13 @@ void course_select_menu_act(struct Controller* arg0, u16 arg1) {
|
||||
}
|
||||
}
|
||||
|
||||
void func_800B3F74(s32 menuSelection) {
|
||||
void load_menu_states(s32 menuSelection) {
|
||||
s32 i;
|
||||
|
||||
gDebugMenuSelection = CVarGetInteger("gEnableDebugMode", 0) + 1;
|
||||
gMenuTimingCounter = 0;
|
||||
gMenuDelayTimer = 0;
|
||||
D_8018EE08 = 0;
|
||||
gDemoUseController = 0;
|
||||
D_8015F890 = 0;
|
||||
D_8015F892 = 0;
|
||||
gDebugGotoScene = DEBUG_GOTO_RACING;
|
||||
@@ -2008,7 +2008,7 @@ bool func_800B4520(void) {
|
||||
|
||||
UNUSED void func_800B4560(s32 arg0, s32 arg1) {
|
||||
struct_8018EE10_entry* pak1 = D_8018EE10;
|
||||
struct_8018EE10_entry* pak2 = (struct_8018EE10_entry*) D_8018D9C0;
|
||||
struct_8018EE10_entry* pak2 = (struct_8018EE10_entry*) gSomeDLBuffer;
|
||||
|
||||
rmonPrintf("ghost_kart=%d,", D_80162DE0);
|
||||
rmonPrintf("pak1_ghost_kart=%d,", (pak1 + arg0)->characterId);
|
||||
|
||||
+11
-11
@@ -30,20 +30,20 @@ void main_menu_act(struct Controller*, u16);
|
||||
bool is_character_spot_free(s32);
|
||||
void player_select_menu_act(struct Controller* controller, u16 arg1);
|
||||
void course_select_menu_act(struct Controller*, u16);
|
||||
void func_800B3F74(s32);
|
||||
void load_menu_states(s32);
|
||||
void func_800B44AC(void);
|
||||
void func_800B44BC(void);
|
||||
bool func_800B4520(void);
|
||||
|
||||
/* data */
|
||||
extern s32 D_8018EDC0;
|
||||
extern f32 D_8018EDC4;
|
||||
extern f32 D_8018EDC8;
|
||||
extern f32 D_8018EDCC;
|
||||
extern f32 D_8018EDD0;
|
||||
extern f32 D_8018EDD4;
|
||||
extern f32 D_8018EDD8;
|
||||
extern f32 D_8018EDDC;
|
||||
extern s32 gIntroModelZEye;
|
||||
extern f32 gIntroModelScale;
|
||||
extern f32 gIntroModelRotX;
|
||||
extern f32 gIntroModelRotY;
|
||||
extern f32 gIntroModelRotZ;
|
||||
extern f32 gIntroModelPosX;
|
||||
extern f32 gIntroModelPosY;
|
||||
extern f32 gIntroModelPosZ;
|
||||
extern s32 D_8018EDE0;
|
||||
|
||||
extern s8 gCharacterGridSelections[];
|
||||
@@ -67,7 +67,7 @@ extern s8 D_8018EDFB;
|
||||
extern s8 D_8018EDFC;
|
||||
extern s32 gMenuTimingCounter;
|
||||
extern s32 gMenuDelayTimer;
|
||||
extern s8 D_8018EE08;
|
||||
extern s8 gDemoUseController;
|
||||
extern s8 gCupSelection;
|
||||
extern s8 D_8018EE0A;
|
||||
extern s8 gCourseIndexInCup;
|
||||
@@ -75,7 +75,7 @@ extern s8 D_8018EE0C;
|
||||
extern struct_8018EE10_entry D_8018EE10[];
|
||||
|
||||
extern s32 gMenuSelection; // D_800E86A0
|
||||
extern s32 D_800E86A4;
|
||||
extern s32 gFadeModeSelection;
|
||||
extern s8 gCharacterSelections[];
|
||||
|
||||
extern s8 D_800E86AC[];
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "code_800029B0.h"
|
||||
#include "menus.h"
|
||||
#include "audio/external.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "port/Game.h"
|
||||
|
||||
// PLAYER_EXISTS | PLAYER_STAGING | PLAYER_START_SEQUENCE | PLAYER_HUMAN
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "memory.h"
|
||||
#include "waypoints.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "collision.h"
|
||||
#include "actors.h"
|
||||
#include "actors_extended.h"
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "code_800029B0.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "update_objects.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "code_80005FD0.h"
|
||||
#include "spawn_players.h"
|
||||
#include "audio/external.h"
|
||||
@@ -853,7 +853,7 @@ void func_8028FCBC(void) {
|
||||
s32 i;
|
||||
u32 phi_v0_4;
|
||||
|
||||
if (D_8018EE08) {
|
||||
if (gDemoUseController) {
|
||||
func_8028FC34();
|
||||
}
|
||||
switch (D_800DC510) {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <assets/common_data.h>
|
||||
#include "render_player.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "actors.h"
|
||||
#include "render_courses.h"
|
||||
#include "math_util.h"
|
||||
@@ -131,7 +131,7 @@ void func_802A38B4(void) {
|
||||
gGamestate = 255;
|
||||
gIsInQuitToMenuTransition = 0;
|
||||
gQuitToMenuTransitionCounter = 0;
|
||||
D_800E86A4 = 1;
|
||||
gFadeModeSelection = 1;
|
||||
|
||||
switch (gGotoMode) {
|
||||
case START_MENU_FROM_QUIT:
|
||||
|
||||
+48
-45
@@ -26,7 +26,7 @@
|
||||
#include "code_8006E9C0.h"
|
||||
#include "render_objects.h"
|
||||
#include "update_objects.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "collision.h"
|
||||
#include "main.h"
|
||||
#include "menus.h"
|
||||
@@ -1535,7 +1535,7 @@ void func_8004B72C(s32 primRed, s32 primGreen, s32 primBlue, s32 envRed, s32 env
|
||||
PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, TEXEL0, 0, PRIMITIVE, 0);
|
||||
}
|
||||
|
||||
void func_8004B7DC(s32 x, s32 y, s32 width, s32 height, s32 arg4, s32 arg5, s32 arg6) {
|
||||
void render_texture_rectangle(s32 x, s32 y, s32 width, s32 height, s32 s, s32 w, s32 mode) {
|
||||
|
||||
s32 xh = (((x + width) - 1) << 2);
|
||||
s32 yh = (((y + height) - 1) << 2);
|
||||
@@ -1545,17 +1545,19 @@ void func_8004B7DC(s32 x, s32 y, s32 width, s32 height, s32 arg4, s32 arg5, s32
|
||||
s32 xh2 = (((x + width)) << 2);
|
||||
s32 yh2 = ((y + height) << 2);
|
||||
|
||||
if (arg6 == 0) {
|
||||
// If no cycle mode is set, render texture rectangle in copy mode
|
||||
if (mode == 0) {
|
||||
//! @todo Update to F3DEX. Uses OLD definition for gspTextureRectangle.
|
||||
gSPTextureRectangle(gDisplayListHead++, xl, yl, xh, yh, G_TX_RENDERTILE, arg4 << 5, (arg5 << 5), 4 << 10,
|
||||
gSPTextureRectangle(gDisplayListHead++, xl, yl, xh, yh, G_TX_RENDERTILE, s << 5, (w << 5), 4 << 10,
|
||||
1 << 10);
|
||||
return;
|
||||
}
|
||||
gSPTextureRectangle(gDisplayListHead++, xl, yl, xh2, yh2, G_TX_RENDERTILE, arg4 << 5, (arg5 << 5), 1 << 10,
|
||||
// Render texture rectangle in default cycle mode (1 cycle or 2 cycle)
|
||||
gSPTextureRectangle(gDisplayListHead++, xl, yl, xh2, yh2, G_TX_RENDERTILE, s << 5, (w << 5), 1 << 10,
|
||||
1 << 10);
|
||||
}
|
||||
|
||||
void func_8004B7DC_wide(s32 x, s32 y, s32 width, s32 height, s32 arg4, s32 arg5, s32 arg6) {
|
||||
void render_texture_rectangle_wide(s32 x, s32 y, s32 width, s32 height, s32 arg4, s32 arg5, s32 arg6) {
|
||||
|
||||
s32 xh = (((x + width) - 1));
|
||||
s32 yh = (((y + height) - 1) << 2);
|
||||
@@ -1604,8 +1606,9 @@ void func_8004B7DC_wide(s32 x, s32 y, s32 width, s32 height, s32 arg4, s32 arg5,
|
||||
// 1 << 10);
|
||||
}
|
||||
|
||||
void func_8004B950(s32 x, s32 y, s32 width, s32 height, s32 arg4) {
|
||||
func_8004B7DC(x, y, width, height, 0, 0, arg4);
|
||||
void render_texture_rectangle_wrap(s32 x, s32 y, s32 width, s32 height, s32 mode) {
|
||||
// (0, 0) means texture coordinates will be rendered from the top left corner
|
||||
render_texture_rectangle(x, y, width, height, 0, 0, mode);
|
||||
}
|
||||
|
||||
// Positions item window, the Lap 1/2/3, TIME texture, and minimap on the screen.
|
||||
@@ -1629,7 +1632,7 @@ void func_8004B97C(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
||||
var_v0 = -arg1;
|
||||
var_a1 = 0;
|
||||
}
|
||||
func_8004B7DC(sp2C, var_a1, arg2 - var_v1, arg3 - var_v0, var_v1, var_v0, arg4);
|
||||
render_texture_rectangle(sp2C, var_a1, arg2 - var_v1, arg3 - var_v0, var_v1, var_v0, arg4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1653,7 +1656,7 @@ void func_8004B97C_wide(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
||||
var_v0 = -arg1;
|
||||
var_a1 = 0;
|
||||
}
|
||||
func_8004B7DC_wide(sp2C, var_a1, arg2 - var_v1, arg3 - var_v0, var_v1, var_v0, arg4);
|
||||
render_texture_rectangle_wide(sp2C, var_a1, arg2 - var_v1, arg3 - var_v0, var_v1, var_v0, arg4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1677,7 +1680,7 @@ void func_8004BA08(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4) {
|
||||
phi_v0 = -arg1;
|
||||
phi_a1 = 0;
|
||||
}
|
||||
func_8004B7DC(sp2C, phi_a1, arg2 - phi_v1, arg3 - phi_v0, phi_v1 + arg2, phi_v0, arg4);
|
||||
render_texture_rectangle(sp2C, phi_a1, arg2 - phi_v1, arg3 - phi_v0, phi_v1 + arg2, phi_v0, arg4);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1708,7 +1711,7 @@ void func_8004BA98(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s
|
||||
sp30 = 0;
|
||||
phi_a3 = arg3 + arg1;
|
||||
}
|
||||
func_8004B7DC_wide(sp34, sp30, sp2C, phi_a3, phi_v0, phi_v1, arg6);
|
||||
render_texture_rectangle_wide(sp34, sp30, sp2C, phi_a3, phi_v0, phi_v1, arg6);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1738,7 +1741,7 @@ void func_8004BA98_wide(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, s32 ar
|
||||
sp30 = 0;
|
||||
phi_a3 = arg3 + arg1;
|
||||
}
|
||||
func_8004B7DC_wide(sp34, sp30, sp2C, phi_a3, phi_v0, phi_v1, arg6);
|
||||
render_texture_rectangle_wide(sp34, sp30, sp2C, phi_a3, phi_v0, phi_v1, arg6);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1793,7 +1796,7 @@ UNUSED void func_8004BD14(s32 x, s32 y, u32 width, u32 height, s32 alpha, u8* te
|
||||
gDPLoadMultiTile(gDisplayListHead++, texture2, 256, G_TX_RENDERTILE + 1, G_IM_FMT_RGBA, G_IM_SIZ_16b, width, height,
|
||||
0, 0, width - 1, height - 1, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP,
|
||||
G_TX_NOMASK, G_TX_NOMASK, G_TX_NOLOD, G_TX_NOLOD);
|
||||
func_8004B950(x, y, width, height, 2);
|
||||
render_texture_rectangle_wrap(x, y, width, height, 2);
|
||||
gSPDisplayList(gDisplayListHead++, D_0D008120);
|
||||
}
|
||||
|
||||
@@ -1881,54 +1884,54 @@ void func_8004C628(s32 arg0, s32 arg1, u32 arg2, u32 arg3, u8* texture) {
|
||||
|
||||
#ifdef NON_MATCHING
|
||||
// https://decomp.me/scratch/TqXqn
|
||||
// There's a weird fakematch concerning `athing`, don't know that to make of. Can't quite get it over the finish line
|
||||
// There's a weird fakematch concerning `xPos`, don't know that to make of. Can't quite get it over the finish line
|
||||
// though
|
||||
void func_8004C6FC(s16 arg0, s16 arg1, u8* texture, u32 width, u32 arg4) {
|
||||
s32 temp_v0_3;
|
||||
s32 var_s3;
|
||||
s32 var_s4;
|
||||
s32 athing;
|
||||
s32 temp_t3;
|
||||
u32 temp_t8;
|
||||
s32 heigth;
|
||||
s32 var_s6;
|
||||
void render_texture_tile_rgba32_block(s16 x, s16 y, u8* texture, u32 width, u32 height) {
|
||||
s32 texSizeLess;
|
||||
s32 i;
|
||||
s32 yPos;
|
||||
s32 xPos;
|
||||
s32 texBlockCount;
|
||||
u32 texSize;
|
||||
s32 heightDiv;
|
||||
s32 realCount;
|
||||
u8* textureCopy;
|
||||
|
||||
athing = arg0 - (width / 2);
|
||||
var_s4 = arg1 - (arg4 / 2);
|
||||
xPos = x - (width / 2);
|
||||
yPos = y - (height / 2);
|
||||
textureCopy = texture;
|
||||
gSPDisplayList(gDisplayListHead++, D_0D007EF8);
|
||||
gDPSetRenderMode(gDisplayListHead++, G_RM_XLU_SURF, G_RM_XLU_SURF2);
|
||||
temp_t8 = width * arg4 * 4;
|
||||
temp_t3 = temp_t8 / 4096;
|
||||
if (temp_t8 % 4096) {
|
||||
temp_t3++;
|
||||
texSize = width * height * 4;
|
||||
texBlockCount = texSize / 4096;
|
||||
if (texSize % 4096) {
|
||||
texBlockCount++;
|
||||
}
|
||||
heigth = arg4 / temp_t3;
|
||||
var_s6 = temp_t3;
|
||||
for (var_s3 = 0; var_s3 < var_s6; var_s3++) {
|
||||
load_texture_tile_rgba32_nomirror(textureCopy, width, heigth);
|
||||
func_8004B950(athing, var_s4, width, heigth, 1);
|
||||
temp_v0_3 = temp_t8 - (width * heigth * 4);
|
||||
textureCopy += (width * heigth * 4);
|
||||
if (temp_v0_3 < 0) {
|
||||
heigth = temp_t8 / width;
|
||||
heightDiv = height / texBlockCount;
|
||||
realCount = texBlockCount;
|
||||
for (i = 0; i < realCount; i++) {
|
||||
load_texture_tile_rgba32_nomirror(textureCopy, width, heightDiv);
|
||||
render_texture_rectangle_wrap(xPos, yPos, width, heightDiv, 1);
|
||||
texSizeLess = texSize - (width * heightDiv * 4);
|
||||
textureCopy += (width * heightDiv * 4);
|
||||
if (texSizeLess < 0) {
|
||||
heightDiv = texSize / width;
|
||||
} else {
|
||||
temp_t8 = temp_v0_3;
|
||||
texSize = texSizeLess;
|
||||
}
|
||||
// Weird fakematch that is a HUGE improvement
|
||||
athing += var_s4 * 0;
|
||||
var_s4 += heigth;
|
||||
xPos += yPos * 0;
|
||||
yPos += heightDiv;
|
||||
}
|
||||
|
||||
gSPDisplayList(gDisplayListHead++, D_0D007EB8);
|
||||
}
|
||||
#else
|
||||
GLOBAL_ASM("asm/non_matchings/render_objects/func_8004C6FC.s")
|
||||
GLOBAL_ASM("asm/non_matchings/render_objects/render_texture_tile_rgba32_block.s")
|
||||
#endif
|
||||
|
||||
void func_8004C8D4(s16 arg0, s16 arg1) {
|
||||
func_8004C6FC(arg0, arg1, D_8018D1E0, 0x100, 0x80);
|
||||
render_texture_tile_rgba32_block(arg0, arg1, gTextureLogoMarioKart64, 0x100, 0x80);
|
||||
}
|
||||
|
||||
UNUSED void func_8004C91C(s32 arg0, s32 arg1, u8* texture, s32 arg3, s32 arg4, s32 arg5) {
|
||||
@@ -4242,7 +4245,7 @@ UNUSED void func_800573DC(void) {
|
||||
}
|
||||
|
||||
void func_800573E4(s32 x, s32 y, s8 str) {
|
||||
func_8004B7DC(x, y, 8, 8, (((str % 16) * 8) << 16) >> 16, (((unsigned short) (str / 16)) << 19) >> 16, 0);
|
||||
render_texture_rectangle(x, y, 8, 8, (((str % 16) * 8) << 16) >> 16, (((unsigned short) (str / 16)) << 19) >> 16, 0);
|
||||
}
|
||||
|
||||
void debug_wrap_text(s32* x, s32* y) {
|
||||
|
||||
@@ -206,12 +206,12 @@ void func_8004B5A8(s32, s32, s32, s32);
|
||||
void func_8004B614(s32, s32, s32, s32, s32, s32, s32);
|
||||
void func_8004B6C4(s32, s32, s32);
|
||||
void func_8004B72C(s32, s32, s32, s32, s32, s32, s32);
|
||||
void func_8004B950(s32, s32, s32, s32, s32);
|
||||
void render_texture_rectangle_wrap(s32, s32, s32, s32, s32);
|
||||
void func_8004BB34(void);
|
||||
void func_8004BB3C(s32, s32, s32, s32, f32);
|
||||
void func_8004BD14(s32, s32, u32, u32, s32, u8*, u8*);
|
||||
|
||||
void func_8004C6FC(s16, s16, u8*, u32, u32);
|
||||
void render_texture_tile_rgba32_block(s16, s16, u8*, u32, u32);
|
||||
|
||||
void func_8004C024(s16, s16, s16, u16, u16, u16, u16);
|
||||
void func_8004C148(s16, s16, s16, u16, u16, u16, u16);
|
||||
|
||||
+11
-11
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "save.h"
|
||||
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "menus.h"
|
||||
#include "save_data.h"
|
||||
#include "staff_ghosts.h"
|
||||
@@ -425,21 +425,21 @@ u8 func_800B5508(s32 cup, s32 ccGrandPrixPoints, s32 points_scored) {
|
||||
|
||||
// Check if all 4 cups have gold cups scored
|
||||
// for a given CC mode
|
||||
s32 func_800B5530(s32 cc_mode) {
|
||||
s32 is_cc_mode_complete(s32 cc_mode) {
|
||||
if (gSaveData.main.saveInfo.grandPrixPoints[cc_mode] == 0xFF) {
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if the 150CC mode has all 4 gold cups
|
||||
s32 has_unlocked_extra_mode(void) {
|
||||
return func_800B5530(CC_150);
|
||||
return is_cc_mode_complete(CC_150);
|
||||
}
|
||||
|
||||
// Check if the Extra mode has all 4 gold cups
|
||||
s32 has_completed_extra_mode(void) {
|
||||
return func_800B5530(CC_EXTRA);
|
||||
return is_cc_mode_complete(CC_EXTRA);
|
||||
}
|
||||
|
||||
void func_800B559C(s32 arg0) {
|
||||
@@ -911,7 +911,7 @@ s32 func_800B65F4(s32 arg0, s32 arg1) {
|
||||
writeStatus = osPfsReadWriteFile(&gControllerPak2FileHandle, gControllerPak2FileNote, 0U, (arg0 * 0x3C00) + 0x100,
|
||||
0x00003C00, (u8*) D_800DC714);
|
||||
if (writeStatus == 0) {
|
||||
temp_s3 = &((struct_8018EE10_entry*) D_8018D9C0)[arg0];
|
||||
temp_s3 = &((struct_8018EE10_entry*) gSomeDLBuffer)[arg0];
|
||||
for (i = 0; i < 0x3C; i++) {
|
||||
if (temp_s3->unk_07[i] != func_800B60E8(i)) {
|
||||
temp_s3->ghostDataSaved = 0;
|
||||
@@ -942,14 +942,14 @@ void func_800B6798(void) {
|
||||
s32 temp_s0;
|
||||
u8* tmp;
|
||||
|
||||
tmp = (u8*) D_8018D9C0;
|
||||
tmp = (u8*) gSomeDLBuffer;
|
||||
|
||||
osPfsReadWriteFile(&gControllerPak2FileHandle, gControllerPak2FileNote, PFS_READ, 0,
|
||||
0x100 /* 2*sizeof(struct_8018EE10_entry) ? */, tmp);
|
||||
|
||||
for (temp_s0 = 0; temp_s0 < 2; ++temp_s0) {
|
||||
// if (D_8018D9C0[temp_s0]->checksum != func_800B68F4(temp_s0)) {
|
||||
// D_8018D9C0[temp_s0]->ghostDataSaved = 0;
|
||||
// if (gSomeDLBuffer[temp_s0]->checksum != func_800B68F4(temp_s0)) {
|
||||
// gSomeDLBuffer[temp_s0]->ghostDataSaved = 0;
|
||||
// }
|
||||
if (((struct_8018EE10_entry*) (tmp + (temp_s0 << 7)))->checksum != func_800B68F4(temp_s0)) {
|
||||
((struct_8018EE10_entry*) (tmp + (temp_s0 << 7)))->ghostDataSaved = 0;
|
||||
@@ -974,7 +974,7 @@ u8 func_800B68F4(s32 arg0) {
|
||||
s32 i;
|
||||
checksum = 0;
|
||||
for (i = 0; i < 0x43; i++) {
|
||||
u8* addr = &((u8*) D_8018D9C0)[arg0];
|
||||
u8* addr = &((u8*) gSomeDLBuffer)[arg0];
|
||||
checksum += addr[i] * multiplier + i;
|
||||
}
|
||||
return checksum;
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ void func_800B5404(s32, s32);
|
||||
u8 func_800B54C0(s32, s32);
|
||||
u8 func_800B54EC(s32, s32);
|
||||
u8 func_800B5508(s32, s32, s32);
|
||||
s32 func_800B5530(s32);
|
||||
s32 is_cc_mode_complete(s32);
|
||||
s32 has_unlocked_extra_mode(void);
|
||||
s32 has_completed_extra_mode(void);
|
||||
void func_800B559C(s32);
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
#include "main.h"
|
||||
#include "menus.h"
|
||||
#include "render_player.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "effects.h"
|
||||
#include "decode.h"
|
||||
#include "port/Game.h"
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
#include "save.h"
|
||||
#include "staff_ghosts.h"
|
||||
#include "code_8006E9C0.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "code_80057C60.h"
|
||||
#include "kart_dma.h"
|
||||
#include "port/Game.h"
|
||||
|
||||
+629
-629
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@
|
||||
#include "collision.h"
|
||||
#include "effects.h"
|
||||
#include "code_80091440.h"
|
||||
#include "code_80091750.h"
|
||||
#include "menu_items.h"
|
||||
#include "podium_ceremony_actors.h"
|
||||
#include "courses/all_course_data.h"
|
||||
#include <assets/ceremony_data.h>
|
||||
|
||||
Reference in New Issue
Block a user