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

The track data a race loads below the program: its triangles and placed models, and the route the vehicles follow. More...

#include <PR/gbi.h>
#include <PR/ultratypes.h>
#include "common/ptr32.h"
#include "common/render.h"
#include "common/vecmath.h"
Include dependency graph for track.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TrackPoint
 A point of the route, across the track. More...
struct  TrackSection
 A section of the route. More...
struct  TrackInstance
 A model placed on the track. More...
struct  TrackSurface
 A triangle of the track: its corners and what it belongs to. More...
struct  TrackGridCursor
 The triangles of a cell of the grid of the track: where they start in the list, and how many. More...
struct  TrackSpecial
 A special object of a track. More...
struct  TrackGate
 A gate of a lap: a line across the route, seen from above. More...
struct  TrackHeader
 The header of the loaded track. More...

Macros

#define TRACK_SECTION_ALTERNATE   0x0001
 The flag of a branch the computer drivers do not take, and that the walks do not enter.
#define TRACK_SECTION_VISITED   0x8000
 The flag a walk sets on the sections it has visited.
#define TRACK_INSTANCE_LIGHT_RAMP   0x0003
 The bits of the flags of a placed model that pick its light from g_adwLightRampColors.
#define TRACK_INSTANCE_TWO_SIDED   0x0004
 The flag of a placed model drawn from both sides.
#define TRACK_INSTANCE_TRANSLUCENT   0x0008
 The flag of a placed model drawn after the others, the farthest first.
#define TRACK_INSTANCE_SHELTER   0x0010
 The flag of a placed model that keeps rain and snow off a camera under it, and echoes.
#define TRACK_INSTANCE_CLEAR_SKY   0x0020
 The flag of a placed model drawn without fog, and hidden in the snow, the rain, and at night except on the tracks whose spray shows in the snow.
#define TRACK_INSTANCE_FLAT   0x0080
 The flag of a placed model drawn with flat shading.
#define TRACK_INSTANCE_NIGHT_LIT   0x0100
 The flag of a placed model lit at half the light of the sun at night.
#define TRACK_INSTANCE_NO_SHADOW   0x0200
 The flag of a placed model that the vehicles cast no shadow on.
#define TRACK_INSTANCE_RAMPED   0x0400
 The flag of a placed model lit by its light ramp instead of the sun.
#define TRACK_INSTANCE_DARK_OR_WET   0x0800
 The flag of a placed model shown only at night or in the rain.
#define TRACK_INSTANCE_UNROTATED   0x2000
 The flag of a placed model whose matrix holds only its position and a scale.
#define TRACK_INSTANCE_ARCADE   0x4000
 The flag of a placed model shown only in arcade races and the first season.
#define TRACK_INSTANCE_MODE_FLAGS
 The flags of a placed model that change the modes it is drawn with.
#define TRACK_SURFACE_START   2
 The surface a wheel and its spray take before the wheel touches the track.
#define TRACK_SURFACE_PAVED   3
 The surface whose tyre smoke is pale and that throws spray only in the rain: the paved road.
#define TRACK_SURFACE_SLOW   4
 The surface that slows a vehicle, except in snow.
#define TRACK_SPECIALS   16
 The special objects a track header lists.
#define TRACK_GATES   10
 The gates a track can have.
#define RAY_INSTANCES   32
 The most placed models CastRayAgainstTrack() lists.
#define TRACK_HEADER_SIZE   0x230
 The size of the header of a track.
#define TRACK_MAX_SIZE   0x171400
#define TRACK_MAX_INSTANCES   0x800
#define TRACK_SECTION_HEADER_SIZE   0x20
 The bytes of the header of each of the two sections of the route of the loaded track.
#define TRACK_SECTION_DATA_SIZE   0x800
 The bytes of the data of each of the two sections of the route of the loaded track.

Typedefs

typedef struct TrackSection TrackSection
 A section of the route.

Enumerations

enum  {
  TRACK_SPECIAL_SPIN_Z , TRACK_SPECIAL_SPIN_X , TRACK_SPECIAL_SPIN_Y , TRACK_SPECIAL_AIRPLANE ,
  TRACK_SPECIAL_AIRPLANE_PATH_LEFT , TRACK_SPECIAL_AIRPLANE_PATH_RIGHT , TRACK_SPECIAL_AIRPLANE_TRIGGER , TRACK_SPECIAL_WATERFALL
}
 The kinds of the special objects of a track. More...

Functions

s32 CastRayAgainstTrack (Vec3f *outPoint, Vec3f *outNormal, Vec3f *origin, u16 *groundInstances, s32 *groundInstanceCount, u16 *nearbyInstances, s32 *nearbyCount, f32 *groundDistance, s32 *groundSurface)
 Drop a vertical line through a point onto the track.
u32 LookupTrackGridCell (f32 x, f32 y)
 The triangles of the cell of the grid of the track under a point.
u16 NextGridCellTriangle (TrackGridCursor *cursor)
 Take the next triangle of a cell of the grid.
u32 LookupInstanceGridCell (s32 column, s32 row)
 The placed models of a cell of the grid of the track.
u16 NextGridCellInstance (TrackGridCursor *cursor)
 Take the next placed model of a cell of the grid.
void LoadTrackGeometryFromRom (s32 track)
 Decompress a track and its sections from the cartridge into g_LoadedTrack, and prepare it.
u32 FindTrackGridCellByIndex (s32 column, s32 row)
 The triangles of a cell of the grid of the track by its column and row.
u32 LookupInstanceCellAtPoint (f32 x, f32 y)
 The placed models of the cell of the grid of the track under a point.
u16 GetTrackGridCellCount (TrackGridCursor *cursor)
 The triangles left in a cell.
u16 GetInstanceGridCellCount (TrackGridCursor *cursor)
 The placed models left in a cell.

Variables

TrackHeader g_LoadedTrack
 The loaded track.
TrackSection * g_pRootTrackSection
 The starting route section, at its address within the loaded track.
TrackGate g_aTrackGates [TRACK_GATES]
 The first gate of the loaded track, addressed separately by the original code.
u16 g_awVisibleInstanceList []
 The placed models drawn this frame, by index.
s32 g_nOpaqueVisibleInstanceCount
 The opaque models at the start of the list.
s32 g_nDebugHiddenInstanceIndex
 The placed model left undrawn while debugging.
u8 g_abTrackSection1Header [TRACK_SECTION_HEADER_SIZE]
 The header of the first route section of the loaded track.
u8 g_abTrackSection1Data [TRACK_SECTION_DATA_SIZE]
 The data of the first route section of the loaded track.
u8 g_abTrackSection2Header [TRACK_SECTION_HEADER_SIZE]
 The header of the second route section of the loaded track.
u8 g_abTrackSection2Data [TRACK_SECTION_DATA_SIZE]
 The data of the second route section of the loaded track.
u32 g_dwCurrentTrackRomOffset
 Where the loaded track is on the cartridge.
u32 g_dwTrackTextureRomOffset
 Where the textures of the loaded track are on the cartridge, after its compressed geometry.
s32 g_dwStreamDmaPrevSegment
 The segment of textures last streamed, or -1.
s32 g_dwStreamedSnowMode
 The snow mode the textures were last streamed for, or -1.
u16 g_awTrackDebugWords [5]
 Two words of the loaded track, 0x3960 and 0x3968 bytes into it, that the loading prints.

Detailed Description

The track data a race loads below the program: its triangles and placed models, and the route the vehicles follow.

The route is a tree of sections. Each section is a line of points across the track, with the edges of the track at each point and the distance left from it to the finish. A section can branch into others, which follow it as its children.

Macro Definition Documentation

◆ TRACK_SECTION_ALTERNATE

#define TRACK_SECTION_ALTERNATE   0x0001

The flag of a branch the computer drivers do not take, and that the walks do not enter.

◆ TRACK_SECTION_VISITED

#define TRACK_SECTION_VISITED   0x8000

The flag a walk sets on the sections it has visited.

◆ TRACK_INSTANCE_LIGHT_RAMP

#define TRACK_INSTANCE_LIGHT_RAMP   0x0003

The bits of the flags of a placed model that pick its light from g_adwLightRampColors.

◆ TRACK_INSTANCE_TWO_SIDED

#define TRACK_INSTANCE_TWO_SIDED   0x0004

The flag of a placed model drawn from both sides.

◆ TRACK_INSTANCE_TRANSLUCENT

#define TRACK_INSTANCE_TRANSLUCENT   0x0008

The flag of a placed model drawn after the others, the farthest first.

◆ TRACK_INSTANCE_SHELTER

#define TRACK_INSTANCE_SHELTER   0x0010

The flag of a placed model that keeps rain and snow off a camera under it, and echoes.

◆ TRACK_INSTANCE_CLEAR_SKY

#define TRACK_INSTANCE_CLEAR_SKY   0x0020

The flag of a placed model drawn without fog, and hidden in the snow, the rain, and at night except on the tracks whose spray shows in the snow.

◆ TRACK_INSTANCE_FLAT

#define TRACK_INSTANCE_FLAT   0x0080

The flag of a placed model drawn with flat shading.

◆ TRACK_INSTANCE_NIGHT_LIT

#define TRACK_INSTANCE_NIGHT_LIT   0x0100

The flag of a placed model lit at half the light of the sun at night.

◆ TRACK_INSTANCE_NO_SHADOW

#define TRACK_INSTANCE_NO_SHADOW   0x0200

The flag of a placed model that the vehicles cast no shadow on.

◆ TRACK_INSTANCE_RAMPED

#define TRACK_INSTANCE_RAMPED   0x0400

The flag of a placed model lit by its light ramp instead of the sun.

◆ TRACK_INSTANCE_DARK_OR_WET

#define TRACK_INSTANCE_DARK_OR_WET   0x0800

The flag of a placed model shown only at night or in the rain.

◆ TRACK_INSTANCE_UNROTATED

#define TRACK_INSTANCE_UNROTATED   0x2000

The flag of a placed model whose matrix holds only its position and a scale.

◆ TRACK_INSTANCE_ARCADE

#define TRACK_INSTANCE_ARCADE   0x4000

The flag of a placed model shown only in arcade races and the first season.

◆ TRACK_INSTANCE_MODE_FLAGS

#define TRACK_INSTANCE_MODE_FLAGS
Value:
#define TRACK_INSTANCE_CLEAR_SKY
The flag of a placed model drawn without fog, and hidden in the snow, the rain, and at night except o...
Definition track.h:101
#define TRACK_INSTANCE_RAMPED
The flag of a placed model lit by its light ramp instead of the sun.
Definition track.h:113
#define TRACK_INSTANCE_FLAT
The flag of a placed model drawn with flat shading.
Definition track.h:104
#define TRACK_INSTANCE_TWO_SIDED
The flag of a placed model drawn from both sides.
Definition track.h:89

The flags of a placed model that change the modes it is drawn with.

◆ TRACK_SURFACE_START

#define TRACK_SURFACE_START   2

The surface a wheel and its spray take before the wheel touches the track.

◆ TRACK_SURFACE_PAVED

#define TRACK_SURFACE_PAVED   3

The surface whose tyre smoke is pale and that throws spray only in the rain: the paved road.

◆ TRACK_SURFACE_SLOW

#define TRACK_SURFACE_SLOW   4

The surface that slows a vehicle, except in snow.

◆ TRACK_SPECIALS

#define TRACK_SPECIALS   16

The special objects a track header lists.

◆ TRACK_GATES

#define TRACK_GATES   10

The gates a track can have.

◆ RAY_INSTANCES

#define RAY_INSTANCES   32

The most placed models CastRayAgainstTrack() lists.

◆ TRACK_HEADER_SIZE

#define TRACK_HEADER_SIZE   0x230

The size of the header of a track.

◆ TRACK_MAX_SIZE

#define TRACK_MAX_SIZE   0x171400

The most bytes a track may take.

◆ TRACK_MAX_INSTANCES

#define TRACK_MAX_INSTANCES   0x800

The most placed models a track may have.

◆ TRACK_SECTION_HEADER_SIZE

#define TRACK_SECTION_HEADER_SIZE   0x20

The bytes of the header of each of the two sections of the route of the loaded track.

◆ TRACK_SECTION_DATA_SIZE

#define TRACK_SECTION_DATA_SIZE   0x800

The bytes of the data of each of the two sections of the route of the loaded track.

Typedef Documentation

◆ TrackSection

typedef struct TrackSection TrackSection

A section of the route.

Its fields join this structure as they are reconstructed.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The kinds of the special objects of a track.

Enumerator
TRACK_SPECIAL_SPIN_Z 

A placed model that turns each frame about the z axis.

TRACK_SPECIAL_SPIN_X 

A placed model that turns each frame about the x axis.

TRACK_SPECIAL_SPIN_Y 

A placed model that turns each frame about the y axis.

TRACK_SPECIAL_AIRPLANE 

The airplane, flying along its path once triggered.

TRACK_SPECIAL_AIRPLANE_PATH_LEFT 

The left edge of the path of the airplane.

TRACK_SPECIAL_AIRPLANE_PATH_RIGHT 

The right edge of the path of the airplane.

TRACK_SPECIAL_AIRPLANE_TRIGGER 

The model that sends the airplane off on the last lap.

TRACK_SPECIAL_WATERFALL 

A placed model that sounds like a waterfall.

Function Documentation

◆ CastRayAgainstTrack()

s32 CastRayAgainstTrack ( Vec3f * outPoint,
Vec3f * outNormal,
Vec3f * origin,
u16 * groundInstances,
s32 * groundInstanceCount,
u16 * nearbyInstances,
s32 * nearbyCount,
f32 * groundDistance,
s32 * groundSurface )

Drop a vertical line through a point onto the track.

The ground is the nearest triangle facing up at most 1.5 above the point, and failing one, the nearest within a unit above that.

Parameters
outPointReceives the height of the ground in its z, unless it is NULL.
outNormalReceives the normal of the ground, unless it is NULL.
originThe point the line drops through.
groundInstancesReceives the placed models of the ground, the nearest first.
groundInstanceCountSet to 1, however many groundInstances were found, so that its readers take only the nearest.
nearbyInstancesReceives the placed models near the ground, the latest first.
nearbyCountReceives the number of nearbyInstances.
groundDistanceReceives how far the ground is below the point.
groundSurfaceReceives the index of the triangle of the ground.
Returns
The number of triangles below the point.
Ghidra address:
USA: 0x8021f380
Ghidra address:
Asia: 0x8021EED0
Ghidra address:
EUR: 0x80220680
Ghidra address:
JPN: 0x8021fe70
Ghidra address:
BRD3D: 0x100759d0
Ghidra address:
BRGlide: 0x1006ec30

◆ LookupTrackGridCell()

u32 LookupTrackGridCell ( f32 x,
f32 y )

The triangles of the cell of the grid of the track under a point.

Parameters
xThe x of the point, in the units of the world.
yThe y of the point.
Returns
The count of the triangles in the upper half and where they start in the lower, or 0 outside the grid.
Ghidra address:
USA: 0x8021e620
Ghidra address:
Asia: 0x8021E170
Ghidra address:
EUR: 0x8021f920
Ghidra address:
JPN: 0x8021f110
Ghidra address:
BRD3D: 0x10002de0
Ghidra address:
BRGlide: 0x10003120

◆ NextGridCellTriangle()

u16 NextGridCellTriangle ( TrackGridCursor * cursor)

Take the next triangle of a cell of the grid.

Parameters
cursorWhere the triangles of the cell go on and how many are left, which this advances.
Returns
Its index, or 0 when the cell has no more.
Ghidra address:
USA: 0x8021ea90
Ghidra address:
Asia: 0x8021E5E0
Ghidra address:
EUR: 0x8021fd90
Ghidra address:
JPN: 0x8021f580
Ghidra address:
BRD3D: 0x10002ef0
Ghidra address:
BRGlide: 0x10003230

◆ LookupInstanceGridCell()

u32 LookupInstanceGridCell ( s32 column,
s32 row )

The placed models of a cell of the grid of the track.

Parameters
columnThe column of the cell, from 0 to 63.
rowThe row of the cell, from 0 to 63.
Returns
The count of the models in the upper half and where they start in the lower, or 0 outside the grid.
Ghidra address:
USA: 0x8021ea0c
Ghidra address:
Asia: 0x8021E55C
Ghidra address:
EUR: 0x8021fd0c
Ghidra address:
JPN: 0x8021f4fc
Ghidra address:
BRD3D: 0x10002e90
Ghidra address:
BRGlide: 0x100031d0

◆ NextGridCellInstance()

u16 NextGridCellInstance ( TrackGridCursor * cursor)

Take the next placed model of a cell of the grid.

Parameters
cursorWhere the models of the cell go on and how many are left, which this advances.
Returns
Its index, or 0 when the cell has no more.
Ghidra address:
USA: 0x8021eadc
Ghidra address:
Asia: 0x8021E62C
Ghidra address:
EUR: 0x8021fddc
Ghidra address:
JPN: 0x8021f5cc
Ghidra address:
BRD3D: 0x10002f40
Ghidra address:
BRGlide: 0x10003280

◆ LoadTrackGeometryFromRom()

void LoadTrackGeometryFromRom ( s32 track)

Decompress a track and its sections from the cartridge into g_LoadedTrack, and prepare it.

Parameters
trackThe index of the track among the descriptors of g_apTrackMenuItems.
Ghidra address:
USA: 0x8021de5c
Ghidra address:
Asia: 0x8021D9AC
Ghidra address:
EUR: 0x8021f05c
Ghidra address:
JPN: 0x8021e92c
Ghidra address:
BRD3D: 0x10037b10
Ghidra address:
BRGlide: 0x100311c0

◆ FindTrackGridCellByIndex()

u32 FindTrackGridCellByIndex ( s32 column,
s32 row )

The triangles of a cell of the grid of the track by its column and row.

Parameters
columnThe column of the cell, from 0 to 63.
rowThe row of the cell, from 0 to 63.
Returns
As LookupTrackGridCell().
Ghidra address:
USA: 0x8021e998
Ghidra address:
Asia: 0x8021E4E8
Ghidra address:
EUR: 0x8021fc98
Ghidra address:
JPN: 0x8021f488

◆ LookupInstanceCellAtPoint()

u32 LookupInstanceCellAtPoint ( f32 x,
f32 y )

The placed models of the cell of the grid of the track under a point.

Parameters
xThe x of the point, in the units of the world.
yThe y of the point.
Returns
As LookupInstanceGridCell().
Ghidra address:
USA: 0x8021e7dc
Ghidra address:
Asia: 0x8021E32C
Ghidra address:
EUR: 0x8021fadc
Ghidra address:
JPN: 0x8021f2cc

◆ GetTrackGridCellCount()

u16 GetTrackGridCellCount ( TrackGridCursor * cursor)

The triangles left in a cell.

Parameters
cursorThe cursor of the cell.
Returns
Its count.
Ghidra address:
USA: 0x8021ea80
Ghidra address:
Asia: 0x8021E5D0
Ghidra address:
EUR: 0x8021fd80
Ghidra address:
JPN: 0x8021f570

◆ GetInstanceGridCellCount()

u16 GetInstanceGridCellCount ( TrackGridCursor * cursor)

The placed models left in a cell.

Parameters
cursorThe cursor of the cell.
Returns
Its count.
Ghidra address:
USA: 0x8021ea88
Ghidra address:
Asia: 0x8021E5D8
Ghidra address:
EUR: 0x8021fd88
Ghidra address:
JPN: 0x8021f578

Variable Documentation

◆ g_LoadedTrack

TrackHeader g_LoadedTrack
extern

The loaded track.

The menus use the same memory for their music. The link script places it.

Ghidra address:
USA: 0x80025c00
Ghidra address:
Asia: 0x80025C00
Ghidra address:
EUR: 0x80025c00
Ghidra address:
JPN: 0x80025c00
Ghidra address:
BRD3D: 0x106c7c48
Ghidra address:
BRGlide: 0x106eecd8

◆ g_pRootTrackSection

TrackSection* g_pRootTrackSection
extern

The starting route section, at its address within the loaded track.

Ghidra address:
USA: 0x80025c70
Ghidra address:
Asia: 0x80025C70
Ghidra address:
EUR: 0x80025c70
Ghidra address:
JPN: 0x80025c70

◆ g_aTrackGates

TrackGate g_aTrackGates[TRACK_GATES]
extern

The first gate of the loaded track, addressed separately by the original code.

Ghidra address:
USA: 0x80025c98
Ghidra address:
Asia: 0x80025C98
Ghidra address:
EUR: 0x80025c98
Ghidra address:
JPN: 0x80025c98

◆ g_awVisibleInstanceList

u16 g_awVisibleInstanceList[]
extern

The placed models drawn this frame, by index.

Ghidra address:
USA: 0x80352580
Ghidra address:
Asia: 0x80352030
Ghidra address:
EUR: 0x80354a80
Ghidra address:
JPN: 0x803536f0
Ghidra address:
BRD3D: 0x10362f28
Ghidra address:
BRGlide: 0x1035e710

◆ g_nOpaqueVisibleInstanceCount

s32 g_nOpaqueVisibleInstanceCount
extern

The opaque models at the start of the list.

Ghidra address:
USA: 0x8028c744
Ghidra address:
Asia: 0x8028C294
Ghidra address:
EUR: 0x8028eea4
Ghidra address:
JPN: 0x8028e8f4
Ghidra address:
BRD3D: 0x103643b4
Ghidra address:
BRGlide: 0x1035fb9c

◆ g_nDebugHiddenInstanceIndex

s32 g_nDebugHiddenInstanceIndex
extern

The placed model left undrawn while debugging.

Ghidra address:
USA: 0x8028c754
Ghidra address:
Asia: 0x8028C2A4
Ghidra address:
EUR: 0x8028eeb4
Ghidra address:
JPN: 0x8028e904
Ghidra address:
BRD3D: 0x1039b6c0
Ghidra address:
BRGlide: 0x10396ea8

◆ g_abTrackSection1Header

u8 g_abTrackSection1Header[TRACK_SECTION_HEADER_SIZE]
extern

The header of the first route section of the loaded track.

Ghidra address:
USA: 0x80373eb0
Ghidra address:
Asia: 0x80373960
Ghidra address:
EUR: 0x803763b0
Ghidra address:
JPN: 0x80375020

◆ g_abTrackSection1Data

u8 g_abTrackSection1Data[TRACK_SECTION_DATA_SIZE]
extern

The data of the first route section of the loaded track.

Ghidra address:
USA: 0x803736b0
Ghidra address:
Asia: 0x80373160
Ghidra address:
EUR: 0x80375bb0
Ghidra address:
JPN: 0x80374820

◆ g_abTrackSection2Header

u8 g_abTrackSection2Header[TRACK_SECTION_HEADER_SIZE]
extern

The header of the second route section of the loaded track.

Ghidra address:
USA: 0x803746d0
Ghidra address:
Asia: 0x80374180
Ghidra address:
EUR: 0x80376bd0
Ghidra address:
JPN: 0x80375840

◆ g_abTrackSection2Data

u8 g_abTrackSection2Data[TRACK_SECTION_DATA_SIZE]
extern

The data of the second route section of the loaded track.

Ghidra address:
USA: 0x80373ed0
Ghidra address:
Asia: 0x80373980
Ghidra address:
EUR: 0x803763d0
Ghidra address:
JPN: 0x80375040

◆ g_dwCurrentTrackRomOffset

u32 g_dwCurrentTrackRomOffset
extern

Where the loaded track is on the cartridge.

Ghidra address:
USA: 0x8028a87c
Ghidra address:
Asia: 0x8028A3CC
Ghidra address:
EUR: 0x8028ca7c
Ghidra address:
JPN: 0x8028c54c

◆ g_dwTrackTextureRomOffset

u32 g_dwTrackTextureRomOffset
extern

Where the textures of the loaded track are on the cartridge, after its compressed geometry.

Ghidra address:
USA: 0x8028a880
Ghidra address:
Asia: 0x8028A3D0
Ghidra address:
EUR: 0x8028ca80
Ghidra address:
JPN: 0x8028c550

◆ g_dwStreamDmaPrevSegment

s32 g_dwStreamDmaPrevSegment
extern

The segment of textures last streamed, or -1.

Ghidra address:
USA: 0x8028aa7c
Ghidra address:
Asia: 0x8028A5CC
Ghidra address:
EUR: 0x8028cc84
Ghidra address:
JPN: 0x8028c754
Ghidra address:
BRD3D: 0x100aa89c
Ghidra address:
BRGlide: 0x100aa02c

◆ g_dwStreamedSnowMode

s32 g_dwStreamedSnowMode
extern

The snow mode the textures were last streamed for, or -1.

Ghidra address:
USA: 0x8028aa88
Ghidra address:
Asia: 0x8028A5D8
Ghidra address:
EUR: 0x8028cc90
Ghidra address:
JPN: 0x8028c760
Ghidra address:
BRD3D: 0x100aa8a0
Ghidra address:
BRGlide: 0x100aa030

◆ g_awTrackDebugWords

u16 g_awTrackDebugWords[5]
extern

Two words of the loaded track, 0x3960 and 0x3968 bytes into it, that the loading prints.

The link script places them.