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

The tracks: how many there are, and the one chosen for the next race. More...

#include "common/types.h"
Include dependency graph for trackselect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TRACK_MIRRORED   5
 The places between a track and its mirrored version.

Enumerations

enum  {
  TRACK_DESERT , TRACK_MOUNTAIN , TRACK_COASTLINE , TRACK_STRIP_MINE ,
  TRACK_JUNGLE , TRACK_MIRROR_DESERT , TRACK_MIRROR_MOUNTAIN , TRACK_MIRROR_COASTLINE ,
  TRACK_MIRROR_STRIP_MINE , TRACK_MIRROR_JUNGLE
}
 The tracks, the mirrored ones TRACK_MIRRORED places after the others. More...

Functions

s32 IsTrackIndexValid (s32 track)
 Whether a track exists on the cartridge.

Variables

u32 g_dwSelectedTrackId
 The track chosen for the next race.
s32 g_dwNumTracks
 The number of tracks.

Detailed Description

The tracks: how many there are, and the one chosen for the next race.

Macro Definition Documentation

◆ TRACK_MIRRORED

#define TRACK_MIRRORED   5

The places between a track and its mirrored version.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The tracks, the mirrored ones TRACK_MIRRORED places after the others.

Enumerator
TRACK_DESERT 

The desert.

TRACK_MOUNTAIN 

The mountain.

TRACK_COASTLINE 

The coastline.

TRACK_STRIP_MINE 

The strip mine.

TRACK_JUNGLE 

The jungle.

TRACK_MIRROR_DESERT 

The desert, mirrored.

TRACK_MIRROR_MOUNTAIN 

The mountain, mirrored.

TRACK_MIRROR_COASTLINE 

The coastline, mirrored.

TRACK_MIRROR_STRIP_MINE 

The strip mine, mirrored.

TRACK_MIRROR_JUNGLE 

The jungle, mirrored.

Function Documentation

◆ IsTrackIndexValid()

s32 IsTrackIndexValid ( s32 track)

Whether a track exists on the cartridge.

Parameters
trackThe index of the track.
Returns
Whether the track has data on N64, or 1 on Windows.
Ghidra address:
USA: 0x8021e180
Ghidra address:
Asia: 0x8021DCD0
Ghidra address:
EUR: 0x8021f380
Ghidra address:
JPN: 0x8021ec50
Ghidra address:
BRD3D: 0x10035b87
Ghidra address:
BRGlide: 0x1002f238

Variable Documentation

◆ g_dwSelectedTrackId

u32 g_dwSelectedTrackId
extern

The track chosen for the next race.

Ghidra address:
USA: 0x8028b940
Ghidra address:
Asia: 0x8028B490
Ghidra address:
EUR: 0x8028dbf0
Ghidra address:
JPN: 0x8028d620
Ghidra address:
BRD3D: 0x100b380c
Ghidra address:
BRGlide: 0x100b3014

◆ g_dwNumTracks

s32 g_dwNumTracks
extern

The number of tracks.

Ghidra address:
USA: 0x8028ae04
Ghidra address:
Asia: 0x8028A954
Ghidra address:
EUR: 0x8028d0b4
Ghidra address:
JPN: 0x8028cae4