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

The screen of a race: its phases, its views, the pause menu, the results it keeps for the results screen, and the credits the attract races show. More...

#include <PR/ultratypes.h>
#include "common/laps.h"
#include "common/model.h"
#include "common/pause.h"
#include "common/render.h"
#include "common/vecmath.h"
Include dependency graph for race.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RacePhaseStep
 A phase of a race and how long it lasts. More...
struct  RaceCaption
 A caption the credits show over a race. More...
struct  CreditLine
 A line of the credits that scroll up at the end of the championship. More...

Macros

#define RACE_PHASES   8
 The phases of g_aRacePhaseTable.
#define START_LIGHT_STEPS   5
 The steps of the countdown of the start lights.
#define CAPTION_LINES   5
 The lines of a caption of the credits.
#define SAVED_RESULTS   2
 The players whose results are kept for the results screen.
#define g_pFirstCreditLineText   (g_aCreditScrollLines[0].text)
 The first scrolling credit line's text pointer.

Enumerations

enum  {
  RACE_PHASE_HOLD , RACE_PHASE_WAIT , RACE_PHASE_COUNTDOWN , RACE_PHASE_GO ,
  RACE_PHASE_RACING , RACE_PHASE_FINISHED , RACE_PHASE_AFTER , RACE_PHASE_LEAVE
}
 The phases of a race, which g_aRacePhaseTable times. More...

Functions

void LoadAndPlayTrackBgm (void)
 Decompress the music of the selected track and start it.
void AnimateStartLights (void)
 Advance the animations of the start lights, holding them in place while they hold their first pose.
void UpdateRaceAnimations (void)
 Move the animations of the race between frames, while the race is not paused.
void RenderStartLights (void)
 Draw the start lights over the start of the track.
void CalculateScrollPositions (void)
 Place the lines of the scrolling credits below the screen.
void ScrollTextUp (void)
 Move the scrolling credits up a pixel.
void DrawScrollingText (void)
 Draw the lines of the scrolling credits that are on the screen.
void ProcessRacingScreen (void)
 Process the racing screen.
void SaveRaceResultsToSlots (void)
 Keep the results of the local players for the results screen.
void RestoreRaceResultsFromSlots (void)
 Give the kept results back to the vehicles, scoring them in the championship first.
void SetTrackFromSeason (void)
 Choose the track of the next race of the championship.
void ProcessSeasonResults (void)
 Score championship progress and unlock bonuses when the season's points qualify.

Variables

u32 g_adwTrackMusicRom [12]
 The cartridge offsets of the music of each track, the mirrored ones after the others, then that of the race after a season.
Model * g_pStartLightsModel
 The model of the start lights.
s32 g_dwStartLightsAnimation
 How the start lights animate: 0 not at all, -1 held in their first pose, and 1 running.
s32 g_bStartLightsVisible
 Whether the start lights are drawn.
f32 g_fStartLightsDrop
 How far the start lights rise out of view once the race starts.
s32 g_dwAirplaneInstance
 The placed model of the airplane, or 0 when the track has none or it landed, and the model a vehicle sends it off from on the lap g_dwAirplaneTriggerLap.
s32 g_dwAirplaneTrigger
 The scene instance whose contact starts the aeroplane flight.
s32 g_dwAirplaneTriggerLap
 The lap on which the aeroplane trigger starts the flight.
s32 g_bAirplaneFlying
 Whether the airplane flies.
s32 g_dwAirplaneNode
 The node of the path the airplane flies towards, and the nodes of the path.
s32 g_dwAirplaneNodeCount
 The number of nodes in the aeroplane flight path.
f32 g_fAirplaneScale
 The scale of the model of the airplane.
Vec3f * g_pAirplanePathLeft
 The left and right edges of the path of the airplane.
Vec3f * g_pAirplanePathRight
 The right edge of the aeroplane flight path.
f32 g_fAirplaneDistance
 How far the airplane flew along the leg of the path to the current node, and its length.
f32 g_fAirplaneSegmentLength
 The length of the current aeroplane flight segment.
Vec3f g_vAirplaneDirPrev
 The directions of the legs of the path before, along and after the one the airplane flies, which it turns between.
Vec3f g_vAirplaneDir
 The direction of the current aeroplane flight segment.
Vec3f g_vAirplaneDirNext
 The direction of the next aeroplane flight segment.
RaceCaption g_aCreditCaptions []
 The captions of the credits, ending with a NULL title.
CreditLine g_aCreditScrollLines []
 The scrolling credits, ending with a NULL text.
s32 g_bReplayAfterRace
 Whether leaving the race starts its instant replay.
s32 g_dwSavedResultsValid
 Whether the results of the last race are kept.
f32 g_afStartLightThresholds [START_LIGHT_STEPS]
 The times left in the countdown at which the start lights change, in seconds.
s32 g_dwSaveAvailable
 Whether a time attack left something to save, so that its results open the save menu.
u8 g_abRacePositionPoints []
 The points of each place of a race of the championship.
s32 g_dwSeasonResultMsgLineCount
 The number of lines in the season result message.
s32 g_dwWaterfallCount
 The waterfalls of the track, as placed models.
s32 g_dwRaceInitialized
 Whether the race is set up.
s32 g_dwRaceExitState
 Whether the screen is leaving the race.
RacePhaseStep g_aRacePhaseTable [RACE_PHASES]
 The phases of a race in their order.
s32 g_dwRaceFinishOrderCounter
 The vehicles that finished the race so far.
f32 g_fRacePhaseTimer
 The time left in the phase of the race, in seconds.
s32 g_dwStartLightsStep
 The step of the countdown of the start lights.
s32 g_dwRacePhaseIndex
 The index of the phase in g_aRacePhaseTable.
s16 g_wRaceScreenLoopExited
 Set once the loop of the race screen ends, and cleared when a race starts.
s32 g_adwSavedResultPositions [SAVED_RESULTS]
 The results of the local players the results screen shows: the place, the time, the best lap and its time, the laps and the time of each.
f32 g_afSavedResultTimes [SAVED_RESULTS]
 The race time of each saved local result, in seconds.
f32 g_afSavedResultBestLapTimes [SAVED_RESULTS]
 The best lap time of each saved local result, in seconds.
f32 g_aafSavedResultLapTimes [SAVED_RESULTS][5]
 The time of each completed lap in each saved local result, in seconds.
s32 g_adwSavedResultBestLaps [SAVED_RESULTS]
 The best lap number of each saved local result, counted from 0.
s32 g_adwSavedResultLaps [SAVED_RESULTS]
 The number of completed laps in each saved local result.
const char * g_apszSeasonResultMsgLines []
 The lines of the message of the result of a season.
char g_szFormatBuffer [0x20]
 The text of a line of the pause menu.
s32 g_adwWaterfallInstances [16]
 The scene instance index of each waterfall in the loaded track.
s32 g_dwScreenClearFrames
 The frames the screen is still cleared, after the views changed or the pause ended.
f32 g_fRaceCaptionTimer
 The time of the caption shown and its index.
s32 g_dwRaceCaptionIndex
 The credit caption currently shown during the attract race.
s32 g_bDemoInterrupted
 Whether a button ended the race the computer drives, which then returns to the main menu rather than the splash screens.
s32 g_dwPrevViewportCount
 The views of the last frame.
s32 g_dwRacePhase
 The phase of the race, by the RACE_PHASE_ values.
const char * g_apszPlaceNames []
 The names of the places in a race: "1st" and on.

Detailed Description

The screen of a race: its phases, its views, the pause menu, the results it keeps for the results screen, and the credits the attract races show.

Macro Definition Documentation

◆ RACE_PHASES

#define RACE_PHASES   8

The phases of g_aRacePhaseTable.

◆ START_LIGHT_STEPS

#define START_LIGHT_STEPS   5

The steps of the countdown of the start lights.

◆ CAPTION_LINES

#define CAPTION_LINES   5

The lines of a caption of the credits.

◆ SAVED_RESULTS

#define SAVED_RESULTS   2

The players whose results are kept for the results screen.

◆ g_pFirstCreditLineText

#define g_pFirstCreditLineText   (g_aCreditScrollLines[0].text)

The first scrolling credit line's text pointer.

Ghidra address:
USA: 0x802701a0
Ghidra address:
Asia: 0x8026FCF0
Ghidra address:
EUR: 0x80272170
Ghidra address:
JPN: 0x80271c20

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The phases of a race, which g_aRacePhaseTable times.

Enumerator
RACE_PHASE_HOLD 

The start lights stay in their first pose.

RACE_PHASE_WAIT 

A timed wait before the countdown that changes nothing.

RACE_PHASE_COUNTDOWN 

The start lights count down.

RACE_PHASE_GO 

The start lights rise away and the vehicles go.

RACE_PHASE_RACING 

The race itself, until its routine ends the phase.

RACE_PHASE_FINISHED 

The race is over, and the results are saved for the results screen.

RACE_PHASE_AFTER 

A timed wait after the finish.

RACE_PHASE_LEAVE 

The screen, the music, and the sound fade out.

Function Documentation

◆ LoadAndPlayTrackBgm()

void LoadAndPlayTrackBgm ( void )

Decompress the music of the selected track and start it.

Ghidra address:
USA: 0x80200320
Ghidra address:
Asia: 0x80200320
Ghidra address:
EUR: 0x80200350
Ghidra address:
JPN: 0x80200310

◆ AnimateStartLights()

void AnimateStartLights ( void )

Advance the animations of the start lights, holding them in place while they hold their first pose.

Ghidra address:
USA: 0x8020037c
Ghidra address:
Asia: 0x8020037C
Ghidra address:
EUR: 0x802003ac
Ghidra address:
JPN: 0x8020036c
Ghidra address:
BRD3D: 0x1002c2d0
Ghidra address:
BRGlide: 0x10019840

◆ UpdateRaceAnimations()

void UpdateRaceAnimations ( void )

Move the animations of the race between frames, while the race is not paused.

Ghidra address:
USA: 0x802003e4
Ghidra address:
Asia: 0x802003E4
Ghidra address:
EUR: 0x80200414
Ghidra address:
JPN: 0x802003d4
Ghidra address:
BRD3D: 0x1002c320
Ghidra address:
BRGlide: 0x10019890

◆ RenderStartLights()

void RenderStartLights ( void )

Draw the start lights over the start of the track.

Ghidra address:
USA: 0x8020046c
Ghidra address:
Asia: 0x8020046C
Ghidra address:
EUR: 0x8020049c
Ghidra address:
JPN: 0x8020045c
Ghidra address:
BRD3D: 0x100147b0
Ghidra address:
BRGlide: 0x10011d20

◆ CalculateScrollPositions()

void CalculateScrollPositions ( void )

Place the lines of the scrolling credits below the screen.

Ghidra address:
USA: 0x802006c8
Ghidra address:
Asia: 0x802006C8
Ghidra address:
EUR: 0x802006f8
Ghidra address:
JPN: 0x802006b8
Ghidra address:
BRD3D: 0x1002c3c0
Ghidra address:
BRGlide: 0x10019930

◆ ScrollTextUp()

void ScrollTextUp ( void )

Move the scrolling credits up a pixel.

Ghidra address:
USA: 0x8020072c
Ghidra address:
Asia: 0x8020072C
Ghidra address:
EUR: 0x8020075c
Ghidra address:
JPN: 0x8020071c
Ghidra address:
BRD3D: 0x1002c410
Ghidra address:
BRGlide: 0x10019980

◆ DrawScrollingText()

void DrawScrollingText ( void )

Draw the lines of the scrolling credits that are on the screen.

Ghidra address:
USA: 0x80200764
Ghidra address:
Asia: 0x80200764
Ghidra address:
EUR: 0x80200794
Ghidra address:
JPN: 0x80200754
Ghidra address:
BRD3D: 0x10015bd0
Ghidra address:
BRGlide: 0x10013140

◆ ProcessRacingScreen()

void ProcessRacingScreen ( void )

Process the racing screen.

The N64 version steps the race and renders its views; the Windows version renders a captured frame, its HUD, and its pause or credits overlays.

Ghidra address:
USA: 0x8020082c
Ghidra address:
Asia: 0x8020082C
Ghidra address:
EUR: 0x8020085c
Ghidra address:
JPN: 0x8020081c
Ghidra address:
BRD3D: 0x10014a30
Ghidra address:
BRGlide: 0x10011fa0

◆ SaveRaceResultsToSlots()

void SaveRaceResultsToSlots ( void )

Keep the results of the local players for the results screen.

Ghidra address:
USA: 0x80205fdc
Ghidra address:
Asia: 0x80205FDC
Ghidra address:
EUR: 0x8020619c
Ghidra address:
JPN: 0x80206270
Ghidra address:
BRD3D: 0x1002f2a0
Ghidra address:
BRGlide: 0x1001c810

◆ RestoreRaceResultsFromSlots()

void RestoreRaceResultsFromSlots ( void )

Give the kept results back to the vehicles, scoring them in the championship first.

Ghidra address:
USA: 0x802060dc
Ghidra address:
Asia: 0x802060DC
Ghidra address:
EUR: 0x8020629c
Ghidra address:
JPN: 0x80206370
Ghidra address:
BRD3D: 0x1002f320
Ghidra address:
BRGlide: 0x1001c890

◆ SetTrackFromSeason()

void SetTrackFromSeason ( void )

Choose the track of the next race of the championship.

Ghidra address:
USA: 0x80206304
Ghidra address:
Asia: 0x80206304
Ghidra address:
EUR: 0x802064c4
Ghidra address:
JPN: 0x80206598
Ghidra address:
BRD3D: 0x1002f460
Ghidra address:
BRGlide: 0x1001c9d0

◆ ProcessSeasonResults()

void ProcessSeasonResults ( void )

Score championship progress and unlock bonuses when the season's points qualify.

Ghidra address:
USA: 0x802063a4
Ghidra address:
Asia: 0x802063A4
Ghidra address:
EUR: 0x80206564
Ghidra address:
JPN: 0x80206638
Ghidra address:
BRD3D: 0x1002f4c0
Ghidra address:
BRGlide: 0x1001ca30

Variable Documentation

◆ g_adwTrackMusicRom

u32 g_adwTrackMusicRom[12]
extern

The cartridge offsets of the music of each track, the mirrored ones after the others, then that of the race after a season.

Ghidra address:
USA: 0x8026ff24
Ghidra address:
Asia: 0x8026FA74
Ghidra address:
EUR: 0x80271ef4
Ghidra address:
JPN: 0x802719a4

◆ g_pStartLightsModel

Model* g_pStartLightsModel
extern

The model of the start lights.

Ghidra address:
USA: 0x8026ff54
Ghidra address:
Asia: 0x8026FAA4
Ghidra address:
EUR: 0x80271f24
Ghidra address:
JPN: 0x802719d4
Ghidra address:
BRD3D: 0x10680944
Ghidra address:
BRGlide: 0x105bcaec

◆ g_dwStartLightsAnimation

s32 g_dwStartLightsAnimation
extern

How the start lights animate: 0 not at all, -1 held in their first pose, and 1 running.

Ghidra address:
USA: 0x8026ff58
Ghidra address:
Asia: 0x8026FAA8
Ghidra address:
EUR: 0x80271f28
Ghidra address:
JPN: 0x802719d8
Ghidra address:
BRD3D: 0x106909b0
Ghidra address:
BRGlide: 0x105ccb58

◆ g_bStartLightsVisible

s32 g_bStartLightsVisible
extern

Whether the start lights are drawn.

Ghidra address:
USA: 0x8026ff5c
Ghidra address:
Asia: 0x8026FAAC
Ghidra address:
EUR: 0x80271f2c
Ghidra address:
JPN: 0x802719dc
Ghidra address:
BRD3D: 0x106909d0
Ghidra address:
BRGlide: 0x105ccb78

◆ g_fStartLightsDrop

f32 g_fStartLightsDrop
extern

How far the start lights rise out of view once the race starts.

Ghidra address:
USA: 0x8026ff60
Ghidra address:
Asia: 0x8026FAB0
Ghidra address:
EUR: 0x80271f30
Ghidra address:
JPN: 0x802719e0
Ghidra address:
BRD3D: 0x106805bc
Ghidra address:
BRGlide: 0x105bc764

◆ g_dwAirplaneInstance

s32 g_dwAirplaneInstance
extern

The placed model of the airplane, or 0 when the track has none or it landed, and the model a vehicle sends it off from on the lap g_dwAirplaneTriggerLap.

Ghidra address:
USA: 0x8026ff64
Ghidra address:
Asia: 0x8026FAB4
Ghidra address:
EUR: 0x80271f34
Ghidra address:
JPN: 0x802719e4
Ghidra address:
BRD3D: 0x10680618
Ghidra address:
BRGlide: 0x105bc7c0

◆ g_dwAirplaneTrigger

s32 g_dwAirplaneTrigger
extern

The scene instance whose contact starts the aeroplane flight.

Ghidra address:
USA: 0x8026ff68
Ghidra address:
Asia: 0x8026FAB8
Ghidra address:
EUR: 0x80271f38
Ghidra address:
JPN: 0x802719e8
Ghidra address:
BRD3D: 0x1068061c
Ghidra address:
BRGlide: 0x105bc7c4

◆ g_dwAirplaneTriggerLap

s32 g_dwAirplaneTriggerLap
extern

The lap on which the aeroplane trigger starts the flight.

Ghidra address:
USA: 0x8026ff6c
Ghidra address:
Asia: 0x8026FABC
Ghidra address:
EUR: 0x80271f3c
Ghidra address:
JPN: 0x802719ec
Ghidra address:
BRD3D: 0x10680620
Ghidra address:
BRGlide: 0x105bc7c8

◆ g_bAirplaneFlying

s32 g_bAirplaneFlying
extern

Whether the airplane flies.

Ghidra address:
USA: 0x8026ff70
Ghidra address:
Asia: 0x8026FAC0
Ghidra address:
EUR: 0x80271f40
Ghidra address:
JPN: 0x802719f0
Ghidra address:
BRD3D: 0x10680624
Ghidra address:
BRGlide: 0x105bc7cc

◆ g_dwAirplaneNode

s32 g_dwAirplaneNode
extern

The node of the path the airplane flies towards, and the nodes of the path.

Ghidra address:
USA: 0x8026ff74
Ghidra address:
Asia: 0x8026FAC4
Ghidra address:
EUR: 0x80271f44
Ghidra address:
JPN: 0x802719f4
Ghidra address:
BRD3D: 0x10680628
Ghidra address:
BRGlide: 0x105bc7d0

◆ g_dwAirplaneNodeCount

s32 g_dwAirplaneNodeCount
extern

The number of nodes in the aeroplane flight path.

Ghidra address:
USA: 0x8026ff78
Ghidra address:
Asia: 0x8026FAC8
Ghidra address:
EUR: 0x80271f48
Ghidra address:
JPN: 0x802719f8
Ghidra address:
BRD3D: 0x1068062c
Ghidra address:
BRGlide: 0x105bc7d4

◆ g_fAirplaneScale

f32 g_fAirplaneScale
extern

The scale of the model of the airplane.

Ghidra address:
USA: 0x8026ff7c
Ghidra address:
Asia: 0x8026FACC
Ghidra address:
EUR: 0x80271f4c
Ghidra address:
JPN: 0x802719fc
Ghidra address:
BRD3D: 0x10680630
Ghidra address:
BRGlide: 0x105bc7d8

◆ g_pAirplanePathLeft

Vec3f* g_pAirplanePathLeft
extern

The left and right edges of the path of the airplane.

Ghidra address:
USA: 0x8026ff80
Ghidra address:
Asia: 0x8026FAD0
Ghidra address:
EUR: 0x80271f50
Ghidra address:
JPN: 0x80271a00
Ghidra address:
BRD3D: 0x10680634
Ghidra address:
BRGlide: 0x105bc7dc

◆ g_pAirplanePathRight

Vec3f* g_pAirplanePathRight
extern

The right edge of the aeroplane flight path.

Ghidra address:
USA: 0x8026ff84
Ghidra address:
Asia: 0x8026FAD4
Ghidra address:
EUR: 0x80271f54
Ghidra address:
JPN: 0x80271a04
Ghidra address:
BRD3D: 0x10680638
Ghidra address:
BRGlide: 0x105bc7e0

◆ g_fAirplaneDistance

f32 g_fAirplaneDistance
extern

How far the airplane flew along the leg of the path to the current node, and its length.

Ghidra address:
USA: 0x8026ff88
Ghidra address:
Asia: 0x8026FAD8
Ghidra address:
EUR: 0x80271f58
Ghidra address:
JPN: 0x80271a08
Ghidra address:
BRD3D: 0x1068063c
Ghidra address:
BRGlide: 0x105bc7e4

◆ g_fAirplaneSegmentLength

f32 g_fAirplaneSegmentLength
extern

The length of the current aeroplane flight segment.

Ghidra address:
USA: 0x8026ff8c
Ghidra address:
Asia: 0x8026FADC
Ghidra address:
EUR: 0x80271f5c
Ghidra address:
JPN: 0x80271a0c
Ghidra address:
BRD3D: 0x10680640
Ghidra address:
BRGlide: 0x105bc7e8

◆ g_vAirplaneDirPrev

Vec3f g_vAirplaneDirPrev
extern

The directions of the legs of the path before, along and after the one the airplane flies, which it turns between.

Ghidra address:
USA: 0x8026ff90
Ghidra address:
Asia: 0x8026FAE0
Ghidra address:
EUR: 0x80271f60
Ghidra address:
JPN: 0x80271a10
Ghidra address:
BRD3D: 0x10680644
Ghidra address:
BRGlide: 0x105bc7ec

◆ g_vAirplaneDir

Vec3f g_vAirplaneDir
extern

The direction of the current aeroplane flight segment.

Ghidra address:
USA: 0x8026ff9c
Ghidra address:
Asia: 0x8026FAEC
Ghidra address:
EUR: 0x80271f6c
Ghidra address:
JPN: 0x80271a1c
Ghidra address:
BRD3D: 0x10680650
Ghidra address:
BRGlide: 0x105bc7f8

◆ g_vAirplaneDirNext

Vec3f g_vAirplaneDirNext
extern

The direction of the next aeroplane flight segment.

Ghidra address:
USA: 0x8026ffa8
Ghidra address:
Asia: 0x8026FAF8
Ghidra address:
EUR: 0x80271f78
Ghidra address:
JPN: 0x80271a28
Ghidra address:
BRD3D: 0x1068065c
Ghidra address:
BRGlide: 0x105bc804

◆ g_aCreditCaptions

RaceCaption g_aCreditCaptions[]
extern

The captions of the credits, ending with a NULL title.

Ghidra address:
USA: 0x8026ffb4
Ghidra address:
Asia: 0x8026FB04
Ghidra address:
EUR: 0x80271f84
Ghidra address:
JPN: 0x80271a34
Ghidra address:
BRD3D: 0x100aa018
Ghidra address:
BRGlide: 0x100a9368

◆ g_aCreditScrollLines

CreditLine g_aCreditScrollLines[]
extern

The scrolling credits, ending with a NULL text.

Ghidra address:
USA: 0x80270194
Ghidra address:
Asia: 0x8026FCE4
Ghidra address:
EUR: 0x80272164
Ghidra address:
JPN: 0x80271c14
Ghidra address:
BRD3D: 0x100a66f0
Ghidra address:
BRGlide: 0x100a5eb0

◆ g_bReplayAfterRace

s32 g_bReplayAfterRace
extern

Whether leaving the race starts its instant replay.

Ghidra address:
USA: 0x8027078c
Ghidra address:
Asia: 0x802702DC
Ghidra address:
EUR: 0x8027275c
Ghidra address:
JPN: 0x8027220c
Ghidra address:
BRD3D: 0x106909e4
Ghidra address:
BRGlide: 0x105ccb8c

◆ g_dwSavedResultsValid

s32 g_dwSavedResultsValid
extern

Whether the results of the last race are kept.

Ghidra address:
USA: 0x80270790
Ghidra address:
Asia: 0x802702E0
Ghidra address:
EUR: 0x80272760
Ghidra address:
JPN: 0x80272210
Ghidra address:
BRD3D: 0x106909b8
Ghidra address:
BRGlide: 0x105ccb60

◆ g_afStartLightThresholds

f32 g_afStartLightThresholds[START_LIGHT_STEPS]
extern

The times left in the countdown at which the start lights change, in seconds.

Ghidra address:
USA: 0x80270794
Ghidra address:
Asia: 0x802702E4
Ghidra address:
EUR: 0x80272764
Ghidra address:
JPN: 0x80272214
Ghidra address:
BRD3D: 0x100aa1f8
Ghidra address:
BRGlide: 0x100a9548

◆ g_dwSaveAvailable

s32 g_dwSaveAvailable
extern

Whether a time attack left something to save, so that its results open the save menu.

Ghidra address:
USA: 0x802707a8
Ghidra address:
Asia: 0x802702F8
Ghidra address:
EUR: 0x80272778
Ghidra address:
JPN: 0x80272228
Ghidra address:
BRD3D: 0x10680610
Ghidra address:
BRGlide: 0x105bc7b8

◆ g_abRacePositionPoints

u8 g_abRacePositionPoints[]
extern

The points of each place of a race of the championship.

Ghidra address:
USA: 0x802707ac
Ghidra address:
Asia: 0x802702FC
Ghidra address:
EUR: 0x8027277c
Ghidra address:
JPN: 0x8027222c
Ghidra address:
BRD3D: 0x100aa210
Ghidra address:
BRGlide: 0x100a9560

◆ g_dwSeasonResultMsgLineCount

s32 g_dwSeasonResultMsgLineCount
extern

The number of lines in the season result message.

Ghidra address:
USA: 0x802707c0
Ghidra address:
Asia: 0x80270310
Ghidra address:
EUR: 0x80272790
Ghidra address:
JPN: 0x80272240

◆ g_dwWaterfallCount

s32 g_dwWaterfallCount
extern

The waterfalls of the track, as placed models.

Ghidra address:
USA: 0x802707c4
Ghidra address:
Asia: 0x80270314
Ghidra address:
EUR: 0x80272794
Ghidra address:
JPN: 0x80272244
Ghidra address:
BRD3D: 0x10680940
Ghidra address:
BRGlide: 0x105bcae8

◆ g_dwRaceInitialized

s32 g_dwRaceInitialized
extern

Whether the race is set up.

Ghidra address:
USA: 0x802707c8
Ghidra address:
Asia: 0x80270318
Ghidra address:
EUR: 0x8027279c
Ghidra address:
JPN: 0x8027224c
Ghidra address:
BRD3D: 0x106909ec
Ghidra address:
BRGlide: 0x105ccb94

◆ g_dwRaceExitState

s32 g_dwRaceExitState
extern

Whether the screen is leaving the race.

Ghidra address:
USA: 0x802707cc
Ghidra address:
Asia: 0x8027031C
Ghidra address:
EUR: 0x802727a0
Ghidra address:
JPN: 0x80272250
Ghidra address:
BRD3D: 0x106909f0
Ghidra address:
BRGlide: 0x105ccb98

◆ g_aRacePhaseTable

RacePhaseStep g_aRacePhaseTable[RACE_PHASES]
extern

The phases of a race in their order.

Ghidra address:
USA: 0x802707d0
Ghidra address:
Asia: 0x80270320
Ghidra address:
EUR: 0x802727a4
Ghidra address:
JPN: 0x80272254
Ghidra address:
BRD3D: 0x100aa228
Ghidra address:
BRGlide: 0x100a9578

◆ g_dwRaceFinishOrderCounter

s32 g_dwRaceFinishOrderCounter
extern

The vehicles that finished the race so far.

Ghidra address:
USA: 0x8028b300
Ghidra address:
Asia: 0x8028AE50
Ghidra address:
EUR: 0x8028d5b0
Ghidra address:
JPN: 0x8028cfe0
Ghidra address:
BRD3D: 0x118ab470
Ghidra address:
BRGlide: 0x118ee588

◆ g_fRacePhaseTimer

f32 g_fRacePhaseTimer
extern

The time left in the phase of the race, in seconds.

Ghidra address:
USA: 0x802f7ef0
Ghidra address:
Asia: 0x802F79B0
Ghidra address:
EUR: 0x802f9be4
Ghidra address:
JPN: 0x802f8624
Ghidra address:
BRD3D: 0x106806d8
Ghidra address:
BRGlide: 0x105bc880

◆ g_dwStartLightsStep

s32 g_dwStartLightsStep
extern

The step of the countdown of the start lights.

Ghidra address:
USA: 0x802f7ef4
Ghidra address:
Asia: 0x802F79B4
Ghidra address:
EUR: 0x802f9be8
Ghidra address:
JPN: 0x802f8628
Ghidra address:
BRD3D: 0x106909cc
Ghidra address:
BRGlide: 0x105ccb74

◆ g_dwRacePhaseIndex

s32 g_dwRacePhaseIndex
extern

The index of the phase in g_aRacePhaseTable.

Ghidra address:
USA: 0x802f7ef8
Ghidra address:
Asia: 0x802F79B8
Ghidra address:
EUR: 0x802f9bec
Ghidra address:
JPN: 0x802f862c
Ghidra address:
BRD3D: 0x106805a8
Ghidra address:
BRGlide: 0x105bc750

◆ g_wRaceScreenLoopExited

s16 g_wRaceScreenLoopExited
extern

Set once the loop of the race screen ends, and cleared when a race starts.

Ghidra address:
USA: 0x802a4c04
Ghidra address:
Asia: 0x802A4754
Ghidra address:
EUR: 0x802a738c
Ghidra address:
JPN: 0x802a6e2c
Ghidra address:
BRD3D: 0x11782bc0
Ghidra address:
BRGlide: 0x117a5f20

◆ g_adwSavedResultPositions

s32 g_adwSavedResultPositions[SAVED_RESULTS]
extern

The results of the local players the results screen shows: the place, the time, the best lap and its time, the laps and the time of each.

Ghidra address:
USA: 0x80315d60
Ghidra address:
Asia: 0x80315820
Ghidra address:
EUR: 0x80317a50
Ghidra address:
JPN: 0x80316490
Ghidra address:
BRD3D: 0x106805c8
Ghidra address:
BRGlide: 0x105bc770

◆ g_afSavedResultTimes

f32 g_afSavedResultTimes[SAVED_RESULTS]
extern

The race time of each saved local result, in seconds.

Ghidra address:
USA: 0x80315d68
Ghidra address:
Asia: 0x80315828
Ghidra address:
EUR: 0x80317a58
Ghidra address:
JPN: 0x80316498
Ghidra address:
BRD3D: 0x10680728
Ghidra address:
BRGlide: 0x105bc8d0

◆ g_afSavedResultBestLapTimes

f32 g_afSavedResultBestLapTimes[SAVED_RESULTS]
extern

The best lap time of each saved local result, in seconds.

Ghidra address:
USA: 0x80315d70
Ghidra address:
Asia: 0x80315830
Ghidra address:
EUR: 0x80317a60
Ghidra address:
JPN: 0x803164a0
Ghidra address:
BRD3D: 0x106909c0
Ghidra address:
BRGlide: 0x105ccb68

◆ g_aafSavedResultLapTimes

f32 g_aafSavedResultLapTimes[SAVED_RESULTS][5]
extern

The time of each completed lap in each saved local result, in seconds.

Ghidra address:
USA: 0x80315d78
Ghidra address:
Asia: 0x80315838
Ghidra address:
EUR: 0x80317a68
Ghidra address:
JPN: 0x803164a8
Ghidra address:
BRD3D: 0x10690950
Ghidra address:
BRGlide: 0x105ccaf8

◆ g_adwSavedResultBestLaps

s32 g_adwSavedResultBestLaps[SAVED_RESULTS]
extern

The best lap number of each saved local result, counted from 0.

Ghidra address:
USA: 0x80315da0
Ghidra address:
Asia: 0x80315860
Ghidra address:
EUR: 0x80317a90
Ghidra address:
JPN: 0x803164d0
Ghidra address:
BRD3D: 0x10680748
Ghidra address:
BRGlide: 0x105bc8f0

◆ g_adwSavedResultLaps

s32 g_adwSavedResultLaps[SAVED_RESULTS]
extern

The number of completed laps in each saved local result.

Ghidra address:
USA: 0x80315da8
Ghidra address:
Asia: 0x80315868
Ghidra address:
EUR: 0x80317a98
Ghidra address:
JPN: 0x803164d8
Ghidra address:
BRD3D: 0x106805b0
Ghidra address:
BRGlide: 0x105bc758

◆ g_apszSeasonResultMsgLines

const char* g_apszSeasonResultMsgLines[]
extern

The lines of the message of the result of a season.

Ghidra address:
USA: 0x80315db0
Ghidra address:
Asia: 0x80315870
Ghidra address:
EUR: 0x80317aa0
Ghidra address:
JPN: 0x803164e0

◆ g_szFormatBuffer

char g_szFormatBuffer[0x20]
extern

The text of a line of the pause menu.

Ghidra address:
USA: 0x80315dd8
Ghidra address:
Asia: 0x80315898
Ghidra address:
EUR: 0x80317ac8
Ghidra address:
JPN: 0x80316508

◆ g_adwWaterfallInstances

s32 g_adwWaterfallInstances[16]
extern

The scene instance index of each waterfall in the loaded track.

Ghidra address:
USA: 0x80315df8
Ghidra address:
Asia: 0x803158B8
Ghidra address:
EUR: 0x80317ae8
Ghidra address:
JPN: 0x80316528
Ghidra address:
BRD3D: 0x106805d0
Ghidra address:
BRGlide: 0x105bc778

◆ g_dwScreenClearFrames

s32 g_dwScreenClearFrames
extern

The frames the screen is still cleared, after the views changed or the pause ended.

Ghidra address:
USA: 0x80315e38
Ghidra address:
Asia: 0x803158F8
Ghidra address:
EUR: 0x80317b28
Ghidra address:
JPN: 0x80316568

◆ g_fRaceCaptionTimer

f32 g_fRaceCaptionTimer
extern

The time of the caption shown and its index.

Ghidra address:
USA: 0x80315e68
Ghidra address:
Asia: 0x80315928
Ghidra address:
EUR: 0x80317b58
Ghidra address:
JPN: 0x80316598
Ghidra address:
BRD3D: 0x106806dc
Ghidra address:
BRGlide: 0x105bc884

◆ g_dwRaceCaptionIndex

s32 g_dwRaceCaptionIndex
extern

The credit caption currently shown during the attract race.

Ghidra address:
USA: 0x80315e6c
Ghidra address:
Asia: 0x8031592C
Ghidra address:
EUR: 0x80317b5c
Ghidra address:
JPN: 0x8031659c
Ghidra address:
BRD3D: 0x106805c0
Ghidra address:
BRGlide: 0x105bc768

◆ g_bDemoInterrupted

s32 g_bDemoInterrupted
extern

Whether a button ended the race the computer drives, which then returns to the main menu rather than the splash screens.

Ghidra address:
USA: 0x80315e70
Ghidra address:
Asia: 0x80315930
Ghidra address:
EUR: 0x80317b60
Ghidra address:
JPN: 0x803165a0
Ghidra address:
BRD3D: 0x10680938
Ghidra address:
BRGlide: 0x105bcae0

◆ g_dwPrevViewportCount

s32 g_dwPrevViewportCount
extern

The views of the last frame.

Ghidra address:
USA: 0x80315e74
Ghidra address:
Asia: 0x80315934
Ghidra address:
EUR: 0x80317b64
Ghidra address:
JPN: 0x803165a4

◆ g_dwRacePhase

s32 g_dwRacePhase
extern

The phase of the race, by the RACE_PHASE_ values.

Ghidra address:
USA: 0x80315e78
Ghidra address:
Asia: 0x80315938
Ghidra address:
EUR: 0x802f9be0
Ghidra address:
JPN: 0x802f8620
Ghidra address:
BRD3D: 0x10680750
Ghidra address:
BRGlide: 0x105bc8f8

◆ g_apszPlaceNames

const char* g_apszPlaceNames[]
extern

The names of the places in a race: "1st" and on.

Ghidra address:
USA: 0x80271fe0
Ghidra address:
Asia: 0x80271B30
Ghidra address:
EUR: 0x80273fc0
Ghidra address:
JPN: 0x80273a80