coastline 0.0.4
Loading...
Searching...
No Matches
racemenu.h File Reference

The menu screens: the generic screen that turns an item at a time, the track menu, the records of a season, and the models the screens draw. More...

#include <PR/gbi.h>
#include <PR/ultratypes.h>
#include "common/frontendscreens.h"
#include "common/model.h"
#include "common/seasons.h"
#include "common/texrect.h"
#include "common/trackmenuitem.h"
#include "common/vehicle.h"
#include "common/vehicleview.h"
Include dependency graph for racemenu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MENU_ITEM_ADJUSTABLE   0x01
 The flag of an item whose up and down change it in place, as the results 3 and 4.
#define MENU_ITEM_IMMEDIATE   0x02
 The flag of an item chosen at once, without fading the screen out.
#define MENU_ITEM_SPINNING   0x04
 The flag of an item drawn as its model turning on the stage.
#define MENU_ITEM_UNAVAILABLE   0x08
 The flag of an item that cannot be chosen, whose screen explains why.
#define MENU_ITEM_FIRST_PLAYER   0x20
 The flag of an item only the first player may choose.
#define MENU_ITEM_LOCKED   0x40
 The flag of an item that cannot be chosen, without a reason shown.
#define MENU_RESULT_CHOSEN   1
#define MENU_RESULT_CANCELLED   2
#define MENU_RESULT_UP   3
#define MENU_RESULT_DOWN   4

Typedefs

typedef s32(* MenuItemFilter) (s32 item)
 A routine that tells whether a menu item may be chosen.
typedef void(* MenuPostDrawCallback) (s32 item)
 A routine a menu screen calls after drawing, with the selected item.
typedef void(* MenuPreDrawCallback) (void)
 A routine a menu screen calls in place of drawing its items.

Functions

s32 IsTrackUnlocked (s32 track)
 Whether a track may be chosen: in the championship only the track of the next race, in time attack the loads and resets too, and otherwise an unlocked track.
void ValidateChampionshipProgress (void)
 Reset the progress of the championship of the first player when its season, its round or its flags are out of range.
void TrackMenuPostDraw (s32 item)
 Draw the hints of the track menu, and run the screen of the controller pak while it is shown, starting the championship or time attack once it is done.
void SeasonRecordsPreDrawCallback (void)
 Draw the records of the season in place of the items of the track menu, and the cars of the season.
void DrawMenuSpotlight (void)
 Draw the beam of the spotlight over the stage of a screen.
void DrawMenuChoiceMarker (void)
 Draw the marker under the stage of a screen.
void DrawMenuFooterButtons (void)
 Draw the buttons of the bottom of a screen: select and go back.
void DrawPauseMenuButtons (void)
 Draw the buttons of the bottom of the pause menu: continue and exit.
void SetScreenPendingSelection (s32 item)
 Move the cursor of the screen to an item on its next frame.
s32 ProcessScreenState (const char *title, s32 itemCount, MenuItem **items, s32 *selection, MenuItemFilter isSelectable, s32 topRed, s32 topGreen, s32 topBlue, s32 bottomRed, s32 bottomGreen, s32 bottomBlue)
 Run one frame of a menu screen over a background gradient.
void LoadMenuItemModels (MenuItem **items, s32 *itemCount)
 Blank the screen, count the items of a menu, and load their models, once for each cartridge range.
void ResetAndInitDisplay (MenuItem **items, s32 *itemCount)
 Reset the heap and the callbacks of the menu screen, and load the models of its items.

Variables

MenuPostDrawCallback g_pfnScreenPostDrawCallback
 The callback after the selected item is drawn, or NULL.
MenuPreDrawCallback g_pfnScreenPreDrawCallback
 The callback that draws in place of the menu items, or NULL.
s32 g_dwMenuChoosingPlayer
 The player whose press chose the last menu item.
s32 g_dwScreenPlayerIdx
 The player a screen belongs to, such as the player whose car the paint shop paints or whose controller the controller screen sets up, or -1.
s32 g_dwMenuInputPlayerMask
 A bit for each player whose input the menu screens read, or -1 for all.
Texture * g_pMenuTitleImage
 The picture of the title of a menu screen, and its rectangle.
s32 g_dwMenuTitleImageX
 The left edge of the menu title, in pixels.
s32 g_dwMenuTitleImageY
 The top edge of the menu title, in pixels.
s32 g_dwMenuTitleImageWidth
 The width of the menu title, in pixels.
s32 g_dwMenuTitleImageHeight
 The height of the menu title, in pixels.
f32 g_fScreenIdleTimeout
 The time without input after which a screen chooses for itself, or 0 for never, and the time without input so far.
s32 g_bScreenStateInitFlag
 Whether ProcessScreenState() has set up its screen.
s32 g_nScreenCursor
 The item under the cursor of the screen.
s32 g_nPrevScreenSelection
 The item the cursor left.
s32 g_nScreenLastActiveIndex
 The item under the cursor when the screen last ran.
s32 g_nScreenPendingSelection
 An item to move the cursor to, or -1.
f32 g_fScreenSlideOffset
 How far the items have still to slide, from 1 or -1 when the cursor moves to 0, and the angle of the model turning under the cursor.
s32 g_bScreenItemChosen
 Whether the screen fades out because an item was chosen.
s8 * g_pScreenScrollSoundBuf
 The sounds of moving the cursor and of choosing, and their lengths.
Texture g_ArrowLeftTextureDesc
 The arrows of the buttons at the bottom of a screen.
Texture g_ArrowRightTextureDesc
 The right arrow of the buttons at the bottom of a screen.
Texture g_BgTextureDesc
 The gradient behind a screen.
s32 g_bMenuSpotlightBuilt
 Whether the vertices of the beam of the spotlight over the stage are set; nothing sets it.
Vtx g_aMenuSpotlightVertices [31]
 The vertices of the beam of the spotlight, its source first.
Gfx g_aMenuSpotlightDisplayList []
 The display list of the beam.
Gfx g_aMenuChoiceMarkerDisplayList []
 The display list of the marker drawn under the stage while there is another item to move to, and its matrix.
s32 g_dwTrackMenuItemCount
 The number of items of the track menu.
s32 g_dwTrackMenuSelection
 The item of the track menu under the cursor.
s32 g_bTrackMenuChampionship
 Whether the track menu is of the championship; never read.
s32 g_dwTrackMenuInitState
 Whether the track menu has set up, 1, has still to, 0, or has left for the next screen, -1.
s32 g_bTrackMenuPakScreen
 Whether the track menu shows the screen of the controller pak.
s32 g_bSeasonFirstRace
 Whether the next race of the season is its first after a load.
s32 g_dwContinueFromResults
 Whether the track menu follows the results of a race.
char g_szTrackMenuTextBuf []
 The text of the track menu and of its records.
VehicleModelLoad g_aVehicleModelSlots [VEHICLE_MODEL_SLOTS]
 The loads of the models of the cars the screens show: a slot for each player, and another for each that its next car loads into.

Detailed Description

The menu screens: the generic screen that turns an item at a time, the track menu, the records of a season, and the models the screens draw.

Macro Definition Documentation

◆ MENU_ITEM_ADJUSTABLE

#define MENU_ITEM_ADJUSTABLE   0x01

The flag of an item whose up and down change it in place, as the results 3 and 4.

◆ MENU_ITEM_IMMEDIATE

#define MENU_ITEM_IMMEDIATE   0x02

The flag of an item chosen at once, without fading the screen out.

◆ MENU_ITEM_SPINNING

#define MENU_ITEM_SPINNING   0x04

The flag of an item drawn as its model turning on the stage.

◆ MENU_ITEM_UNAVAILABLE

#define MENU_ITEM_UNAVAILABLE   0x08

The flag of an item that cannot be chosen, whose screen explains why.

◆ MENU_ITEM_FIRST_PLAYER

#define MENU_ITEM_FIRST_PLAYER   0x20

The flag of an item only the first player may choose.

◆ MENU_ITEM_LOCKED

#define MENU_ITEM_LOCKED   0x40

The flag of an item that cannot be chosen, without a reason shown.

◆ MENU_RESULT_CHOSEN

#define MENU_RESULT_CHOSEN   1

The player chose the item under the cursor.

◆ MENU_RESULT_CANCELLED

#define MENU_RESULT_CANCELLED   2

The player left the screen.

◆ MENU_RESULT_UP

#define MENU_RESULT_UP   3

The player moved up.

◆ MENU_RESULT_DOWN

#define MENU_RESULT_DOWN   4

The player moved down.

Typedef Documentation

◆ MenuItemFilter

typedef s32(* MenuItemFilter) (s32 item)

A routine that tells whether a menu item may be chosen.

◆ MenuPostDrawCallback

typedef void(* MenuPostDrawCallback) (s32 item)

A routine a menu screen calls after drawing, with the selected item.

◆ MenuPreDrawCallback

typedef void(* MenuPreDrawCallback) (void)

A routine a menu screen calls in place of drawing its items.

Function Documentation

◆ IsTrackUnlocked()

s32 IsTrackUnlocked ( s32 track)

Whether a track may be chosen: in the championship only the track of the next race, in time attack the loads and resets too, and otherwise an unlocked track.

Parameters
trackThe index of the track, or of an item past the tracks.
Returns
Whether it may be chosen.
Ghidra address:
USA: 0x80208900
Ghidra address:
Asia: 0x80208490
Ghidra address:
EUR: 0x802086e0
Ghidra address:
JPN: 0x80208300

◆ ValidateChampionshipProgress()

void ValidateChampionshipProgress ( void )

Reset the progress of the championship of the first player when its season, its round or its flags are out of range.

Ghidra address:
USA: 0x802089d0
Ghidra address:
Asia: 0x80208560
Ghidra address:
EUR: 0x802087b0
Ghidra address:
JPN: 0x802083d0

◆ TrackMenuPostDraw()

void TrackMenuPostDraw ( s32 item)

Draw the hints of the track menu, and run the screen of the controller pak while it is shown, starting the championship or time attack once it is done.

Parameters
itemThe item under the cursor.
Ghidra address:
USA: 0x80208a58
Ghidra address:
Asia: 0x802085E8
Ghidra address:
EUR: 0x80208838
Ghidra address:
JPN: 0x80208458

◆ SeasonRecordsPreDrawCallback()

void SeasonRecordsPreDrawCallback ( void )

Draw the records of the season in place of the items of the track menu, and the cars of the season.

Ghidra address:
USA: 0x80208cf0
Ghidra address:
Asia: 0x80208880
Ghidra address:
EUR: 0x80208ad0
Ghidra address:
JPN: 0x802086b4

◆ DrawMenuSpotlight()

void DrawMenuSpotlight ( void )

Draw the beam of the spotlight over the stage of a screen.

Ghidra address:
USA: 0x8020a820
Ghidra address:
Asia: 0x8020A3B0
Ghidra address:
EUR: 0x8020a600
Ghidra address:
JPN: 0x8020a200

◆ DrawMenuChoiceMarker()

void DrawMenuChoiceMarker ( void )

Draw the marker under the stage of a screen.

Ghidra address:
USA: 0x8020a9d0
Ghidra address:
Asia: 0x8020A560
Ghidra address:
EUR: 0x8020a7b0
Ghidra address:
JPN: 0x8020a3b0

◆ DrawMenuFooterButtons()

void DrawMenuFooterButtons ( void )

Draw the buttons of the bottom of a screen: select and go back.

Ghidra address:
USA: 0x8020aae0
Ghidra address:
Asia: 0x8020A670
Ghidra address:
EUR: 0x8020a8c0
Ghidra address:
JPN: 0x8020a4c0

◆ DrawPauseMenuButtons()

void DrawPauseMenuButtons ( void )

Draw the buttons of the bottom of the pause menu: continue and exit.

Ghidra address:
USA: 0x8020ac18
Ghidra address:
Asia: 0x8020A7A8
Ghidra address:
EUR: 0x8020a9f8
Ghidra address:
JPN: 0x8020a5f8

◆ SetScreenPendingSelection()

void SetScreenPendingSelection ( s32 item)

Move the cursor of the screen to an item on its next frame.

Parameters
itemThe item.
Ghidra address:
USA: 0x8020ad50
Ghidra address:
Asia: 0x8020A8E0
Ghidra address:
EUR: 0x8020ab30
Ghidra address:
JPN: 0x8020a730

◆ ProcessScreenState()

s32 ProcessScreenState ( const char * title,
s32 itemCount,
MenuItem ** items,
s32 * selection,
MenuItemFilter isSelectable,
s32 topRed,
s32 topGreen,
s32 topBlue,
s32 bottomRed,
s32 bottomGreen,
s32 bottomBlue )

Run one frame of a menu screen over a background gradient.

Parameters
titleThe title of the screen.
itemCountThe number of items.
itemsThe items of the menu.
selectionThe index of the item under the cursor, updated as the cursor moves.
isSelectableTells whether an item may be chosen, or NULL to allow every item.
topRedThe red component of the top of the gradient.
topGreenThe green component of the top of the gradient.
topBlueThe blue component of the top of the gradient.
bottomRedThe red component of the bottom of the gradient.
bottomGreenThe green component of the bottom of the gradient.
bottomBlueThe blue component of the bottom of the gradient.
Returns
MENU_RESULT_CHOSEN once an item is chosen, MENU_RESULT_CANCELLED once the screen is left, MENU_RESULT_UP or MENU_RESULT_DOWN when an adjustable item is changed, and 0 while the screen runs.
Ghidra address:
USA: 0x8020ad5c
Ghidra address:
Asia: 0x8020A8EC
Ghidra address:
EUR: 0x8020ab3c
Ghidra address:
JPN: 0x8020a73c

◆ LoadMenuItemModels()

void LoadMenuItemModels ( MenuItem ** items,
s32 * itemCount )

Blank the screen, count the items of a menu, and load their models, once for each cartridge range.

Parameters
itemsThe items of the menu, ended by a null pointer.
itemCountReceives the number of items.
Ghidra address:
USA: 0x8020c27c
Ghidra address:
Asia: 0x8020BE0C
Ghidra address:
EUR: 0x8020c05c
Ghidra address:
JPN: 0x8020bc5c

◆ ResetAndInitDisplay()

void ResetAndInitDisplay ( MenuItem ** items,
s32 * itemCount )

Reset the heap and the callbacks of the menu screen, and load the models of its items.

Parameters
itemsThe items of the menu, ended by a null pointer.
itemCountReceives the number of items.
Ghidra address:
USA: 0x8020c408
Ghidra address:
Asia: 0x8020BF98
Ghidra address:
EUR: 0x8020c1e8
Ghidra address:
JPN: 0x8020bde8

Variable Documentation

◆ g_pfnScreenPostDrawCallback

MenuPostDrawCallback g_pfnScreenPostDrawCallback
extern

The callback after the selected item is drawn, or NULL.

Ghidra address:
USA: 0x80271fc8
Ghidra address:
Asia: 0x80271B18
Ghidra address:
EUR: 0x80273fa8
Ghidra address:
JPN: 0x80273a68

◆ g_pfnScreenPreDrawCallback

MenuPreDrawCallback g_pfnScreenPreDrawCallback
extern

The callback that draws in place of the menu items, or NULL.

Ghidra address:
USA: 0x80271fcc
Ghidra address:
Asia: 0x80271B1C
Ghidra address:
EUR: 0x80273fac
Ghidra address:
JPN: 0x80273a6c

◆ g_dwMenuChoosingPlayer

s32 g_dwMenuChoosingPlayer
extern

The player whose press chose the last menu item.

Ghidra address:
USA: 0x80271fa8
Ghidra address:
Asia: 0x80271AF8
Ghidra address:
EUR: 0x80273f88
Ghidra address:
JPN: 0x80273a48

◆ g_dwScreenPlayerIdx

s32 g_dwScreenPlayerIdx
extern

The player a screen belongs to, such as the player whose car the paint shop paints or whose controller the controller screen sets up, or -1.

Ghidra address:
USA: 0x80271fa0
Ghidra address:
Asia: 0x80271AF0
Ghidra address:
EUR: 0x80273f80
Ghidra address:
JPN: 0x80273a40

◆ g_dwMenuInputPlayerMask

s32 g_dwMenuInputPlayerMask
extern

A bit for each player whose input the menu screens read, or -1 for all.

Ghidra address:
USA: 0x80271fa4
Ghidra address:
Asia: 0x80271AF4
Ghidra address:
EUR: 0x80273f84
Ghidra address:
JPN: 0x80273a44

◆ g_pMenuTitleImage

Texture* g_pMenuTitleImage
extern

The picture of the title of a menu screen, and its rectangle.

Ghidra address:
USA: 0x80271fb0
Ghidra address:
Asia: 0x80271B00
Ghidra address:
EUR: 0x80273f90
Ghidra address:
JPN: 0x80273a50

◆ g_dwMenuTitleImageX

s32 g_dwMenuTitleImageX
extern

The left edge of the menu title, in pixels.

Ghidra address:
USA: 0x80271fb4
Ghidra address:
Asia: 0x80271B04
Ghidra address:
EUR: 0x80273f94
Ghidra address:
JPN: 0x80273a54

◆ g_dwMenuTitleImageY

s32 g_dwMenuTitleImageY
extern

The top edge of the menu title, in pixels.

Ghidra address:
USA: 0x80271fb8
Ghidra address:
Asia: 0x80271B08
Ghidra address:
EUR: 0x80273f98
Ghidra address:
JPN: 0x80273a58

◆ g_dwMenuTitleImageWidth

s32 g_dwMenuTitleImageWidth
extern

The width of the menu title, in pixels.

Ghidra address:
USA: 0x80271fbc
Ghidra address:
Asia: 0x80271B0C
Ghidra address:
EUR: 0x80273f9c
Ghidra address:
JPN: 0x80273a5c

◆ g_dwMenuTitleImageHeight

s32 g_dwMenuTitleImageHeight
extern

The height of the menu title, in pixels.

Ghidra address:
USA: 0x80271fc0
Ghidra address:
Asia: 0x80271B10
Ghidra address:
EUR: 0x80273fa0
Ghidra address:
JPN: 0x80273a60

◆ g_fScreenIdleTimeout

f32 g_fScreenIdleTimeout
extern

The time without input after which a screen chooses for itself, or 0 for never, and the time without input so far.

Ghidra address:
USA: 0x80271fc4
Ghidra address:
Asia: 0x80271B14
Ghidra address:
EUR: 0x80273fa4
Ghidra address:
JPN: 0x80273a64

◆ g_bScreenStateInitFlag

s32 g_bScreenStateInitFlag
extern

Whether ProcessScreenState() has set up its screen.

Ghidra address:
USA: 0x80271fd4
Ghidra address:
Asia: 0x80271B24
Ghidra address:
EUR: 0x80273fb4
Ghidra address:
JPN: 0x80273a74

◆ g_nScreenCursor

s32 g_nScreenCursor
extern

The item under the cursor of the screen.

Ghidra address:
USA: 0x80316244
Ghidra address:
Asia: 0x80315CF4
Ghidra address:
EUR: 0x80317f24
Ghidra address:
JPN: 0x80316b54

◆ g_nPrevScreenSelection

s32 g_nPrevScreenSelection
extern

The item the cursor left.

Ghidra address:
USA: 0x80316220
Ghidra address:
Asia: 0x80315CD0
Ghidra address:
EUR: 0x80317f00
Ghidra address:
JPN: 0x80316b30

◆ g_nScreenLastActiveIndex

s32 g_nScreenLastActiveIndex
extern

The item under the cursor when the screen last ran.

Ghidra address:
USA: 0x80271fac
Ghidra address:
Asia: 0x80271AFC
Ghidra address:
EUR: 0x80273f8c
Ghidra address:
JPN: 0x80273a4c

◆ g_nScreenPendingSelection

s32 g_nScreenPendingSelection
extern

An item to move the cursor to, or -1.

Ghidra address:
USA: 0x80271fd0
Ghidra address:
Asia: 0x80271B20
Ghidra address:
EUR: 0x80273fb0
Ghidra address:
JPN: 0x80273a70

◆ g_fScreenSlideOffset

f32 g_fScreenSlideOffset
extern

How far the items have still to slide, from 1 or -1 when the cursor moves to 0, and the angle of the model turning under the cursor.

Ghidra address:
USA: 0x80316224
Ghidra address:
Asia: 0x80315CD4
Ghidra address:
EUR: 0x80317f04
Ghidra address:
JPN: 0x80316b34

◆ g_bScreenItemChosen

s32 g_bScreenItemChosen
extern

Whether the screen fades out because an item was chosen.

Ghidra address:
USA: 0x8031622c
Ghidra address:
Asia: 0x80315CDC
Ghidra address:
EUR: 0x80317f0c
Ghidra address:
JPN: 0x80316b3c

◆ g_pScreenScrollSoundBuf

s8* g_pScreenScrollSoundBuf
extern

The sounds of moving the cursor and of choosing, and their lengths.

Ghidra address:
USA: 0x80316230
Ghidra address:
Asia: 0x80315CE0
Ghidra address:
EUR: 0x80317f10
Ghidra address:
JPN: 0x80316b40

◆ g_ArrowLeftTextureDesc

Texture g_ArrowLeftTextureDesc
extern

The arrows of the buttons at the bottom of a screen.

Ghidra address:
USA: 0x80271d70
Ghidra address:
Asia: 0x802718C0
Ghidra address:
EUR: 0x80273d50
Ghidra address:
JPN: 0x80273810

◆ g_ArrowRightTextureDesc

Texture g_ArrowRightTextureDesc
extern

The right arrow of the buttons at the bottom of a screen.

Ghidra address:
USA: 0x80271d84
Ghidra address:
Asia: 0x802718D4
Ghidra address:
EUR: 0x80273d64
Ghidra address:
JPN: 0x80273824

◆ g_BgTextureDesc

Texture g_BgTextureDesc
extern

The gradient behind a screen.

Ghidra address:
USA: 0x80272048
Ghidra address:
Asia: 0x80271B98
Ghidra address:
EUR: 0x80274028
Ghidra address:
JPN: 0x80273ae8

◆ g_bMenuSpotlightBuilt

s32 g_bMenuSpotlightBuilt
extern

Whether the vertices of the beam of the spotlight over the stage are set; nothing sets it.

Ghidra address:
USA: 0x80271dac
Ghidra address:
Asia: 0x802718FC
Ghidra address:
EUR: 0x80273d8c
Ghidra address:
JPN: 0x8027384c

◆ g_aMenuSpotlightVertices

Vtx g_aMenuSpotlightVertices[31]
extern

The vertices of the beam of the spotlight, its source first.

Ghidra address:
USA: 0x80315ff0
Ghidra address:
Asia: 0x80315AA0
Ghidra address:
EUR: 0x80317cd0
Ghidra address:
JPN: 0x80316900

◆ g_aMenuSpotlightDisplayList

Gfx g_aMenuSpotlightDisplayList[]
extern

The display list of the beam.

Ghidra address:
USA: 0x80271db0
Ghidra address:
Asia: 0x80271900
Ghidra address:
EUR: 0x80273d90
Ghidra address:
JPN: 0x80273850

◆ g_aMenuChoiceMarkerDisplayList

Gfx g_aMenuChoiceMarkerDisplayList[]
extern

The display list of the marker drawn under the stage while there is another item to move to, and its matrix.

Ghidra address:
USA: 0x80271f28
Ghidra address:
Asia: 0x80271A78
Ghidra address:
EUR: 0x80273f08
Ghidra address:
JPN: 0x802739c8

◆ g_dwTrackMenuItemCount

s32 g_dwTrackMenuItemCount
extern

The number of items of the track menu.

Ghidra address:
USA: 0x80315f88
Ghidra address:
Asia: 0x80315A38
Ghidra address:
EUR: 0x80317c68
Ghidra address:
JPN: 0x80316898

◆ g_dwTrackMenuSelection

s32 g_dwTrackMenuSelection
extern

The item of the track menu under the cursor.

Ghidra address:
USA: 0x80315f8c
Ghidra address:
Asia: 0x80315A3C
Ghidra address:
EUR: 0x80317c6c
Ghidra address:
JPN: 0x8031689c

◆ g_bTrackMenuChampionship

s32 g_bTrackMenuChampionship
extern

Whether the track menu is of the championship; never read.

Ghidra address:
USA: 0x80315f90
Ghidra address:
Asia: 0x80315A40
Ghidra address:
EUR: 0x80317c70
Ghidra address:
JPN: 0x803168a0

◆ g_dwTrackMenuInitState

s32 g_dwTrackMenuInitState
extern

Whether the track menu has set up, 1, has still to, 0, or has left for the next screen, -1.

Ghidra address:
USA: 0x80271d60
Ghidra address:
Asia: 0x802718B0
Ghidra address:
EUR: 0x80273d40
Ghidra address:
JPN: 0x80273800

◆ g_bTrackMenuPakScreen

s32 g_bTrackMenuPakScreen
extern

Whether the track menu shows the screen of the controller pak.

Ghidra address:
USA: 0x80271d58
Ghidra address:
Asia: 0x802718A8
Ghidra address:
EUR: 0x80273d38
Ghidra address:
JPN: 0x802737f8

◆ g_bSeasonFirstRace

s32 g_bSeasonFirstRace
extern

Whether the next race of the season is its first after a load.

Ghidra address:
USA: 0x80315ee0
Ghidra address:
Asia: 0x80315990
Ghidra address:
EUR: 0x80317bc0
Ghidra address:
JPN: 0x803167f0

◆ g_dwContinueFromResults

s32 g_dwContinueFromResults
extern

Whether the track menu follows the results of a race.

Ghidra address:
USA: 0x80270850
Ghidra address:
Asia: 0x802703A0
Ghidra address:
EUR: 0x80272830
Ghidra address:
JPN: 0x802722f0

◆ g_szTrackMenuTextBuf

char g_szTrackMenuTextBuf[]
extern

The text of the track menu and of its records.

Ghidra address:
USA: 0x80315f98
Ghidra address:
Asia: 0x80315A48
Ghidra address:
EUR: 0x80317c78
Ghidra address:
JPN: 0x803168a8

◆ g_aVehicleModelSlots

VehicleModelLoad g_aVehicleModelSlots[VEHICLE_MODEL_SLOTS]
extern

The loads of the models of the cars the screens show: a slot for each player, and another for each that its next car loads into.

Ghidra address:
USA: 0x8031b370
Ghidra address:
Asia: 0x8031AE20
Ghidra address:
EUR: 0x8031d870
Ghidra address:
JPN: 0x8031c4a0