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

The screens of the front end of the Nintendo 64 releases that the game hands over to, and the routines of the Controller Pak, the EEPROM, and the Rumble Pak the game calls. More...

#include <PR/ultratypes.h>
Include dependency graph for frontendscreens.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  { SAVE_LOAD_FROM_MAIN_MENU , SAVE_LOAD_FROM_SEASON , SAVE_LOAD_FROM_TIME_ATTACK }
 The screens that open the save and load menu, deciding what it offers and where it returns. More...
enum  { PAK_DATA_LOAD_SEASON , PAK_DATA_LOAD_GHOST , PAK_DATA_LOAD_CONFIGURATION , PAK_DATA_SAVE_CONFIGURATION }
 The data ProcessPakDataScreen() loads or saves. More...

Functions

void ProcessMainMenu (void)
 Run one frame of the main menu.
void ProcessTrackMenu (void)
 Run one frame of the track menu: set it up on its first frame, then act on its items.
void ProcessRaceResultsScreen (void)
 Run one frame of the results of a race, on the car selection screen.
void ProcessOptionsMenu (void)
 Run one frame of the options menu.
void ProcessDataSaveLoadMenu (void)
 Run one frame of the save and load menu.
s32 LoadSaveDataFromEeprom (void)
 Load the profile of both players, the equipment of the second player, and the options from the EEPROM of the cartridge, when the EEPROM responds and passes its checksum.
void PreparePakDataScreen (void)
 Load the pictures of the A and B buttons, and allocate the buffer of the Controller Pak data.
void InitAllRumblePaks (void)
 Look for a Rumble Pak in the controller of each player at this console, and stop its motor.
s32 ProcessPakDataScreen (s32 dataType, u8 quiet)
 Run one frame of the screen that loads or saves data on a Controller Pak.

Variables

u8 g_bSaveLoadEntryPoint
 Which screen opened the save and load menu, by the SAVE_LOAD_FROM_ values.

Detailed Description

The screens of the front end of the Nintendo 64 releases that the game hands over to, and the routines of the Controller Pak, the EEPROM, and the Rumble Pak the game calls.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

The screens that open the save and load menu, deciding what it offers and where it returns.

Enumerator
SAVE_LOAD_FROM_MAIN_MENU 

The main menu; the menu offers every choice.

SAVE_LOAD_FROM_SEASON 

The results of a championship race; the menu offers to save the season.

SAVE_LOAD_FROM_TIME_ATTACK 

The results of a time attack; the menu offers to save the ghost car.

◆ anonymous enum

anonymous enum

The data ProcessPakDataScreen() loads or saves.

Enumerator
PAK_DATA_LOAD_SEASON 

Load a championship season.

PAK_DATA_LOAD_GHOST 

Load a ghost car of time attack.

PAK_DATA_LOAD_CONFIGURATION 

Load the settings of the options menu.

PAK_DATA_SAVE_CONFIGURATION 

Save the settings of the options menu.

Function Documentation

◆ ProcessMainMenu()

void ProcessMainMenu ( void )

Run one frame of the main menu.

Ghidra address:
USA: 0x802111e0
Ghidra address:
Asia: 0x80210D70
Ghidra address:
EUR: 0x80211040
Ghidra address:
JPN: 0x80210f30

◆ ProcessTrackMenu()

void ProcessTrackMenu ( void )

Run one frame of the track menu: set it up on its first frame, then act on its items.

Ghidra address:
USA: 0x80209434
Ghidra address:
Asia: 0x80208FC4
Ghidra address:
EUR: 0x80209214
Ghidra address:
JPN: 0x80208e20

◆ ProcessRaceResultsScreen()

void ProcessRaceResultsScreen ( void )

Run one frame of the results of a race, on the car selection screen.

Ghidra address:
USA: 0x80210f4c
Ghidra address:
Asia: 0x80210ADC
Ghidra address:
EUR: 0x80210da8
Ghidra address:
JPN: 0x80210ca0

◆ ProcessOptionsMenu()

void ProcessOptionsMenu ( void )

Run one frame of the options menu.

Ghidra address:
USA: 0x80211a3c
Ghidra address:
Asia: 0x802115CC
Ghidra address:
EUR: 0x8021192c
Ghidra address:
JPN: 0x802117e8

◆ ProcessDataSaveLoadMenu()

void ProcessDataSaveLoadMenu ( void )

Run one frame of the save and load menu.

Ghidra address:
USA: 0x80211d70
Ghidra address:
Asia: 0x80211900
Ghidra address:
EUR: 0x80212208
Ghidra address:
JPN: 0x80212058

◆ LoadSaveDataFromEeprom()

s32 LoadSaveDataFromEeprom ( void )

Load the profile of both players, the equipment of the second player, and the options from the EEPROM of the cartridge, when the EEPROM responds and passes its checksum.

Returns
TRUE when the data was loaded, FALSE when the EEPROM is missing, unreadable, or fails its checksum.
Ghidra address:
EUR: 0x80211ca0
Ghidra address:
JPN: 0x80211b60

◆ PreparePakDataScreen()

void PreparePakDataScreen ( void )

Load the pictures of the A and B buttons, and allocate the buffer of the Controller Pak data.

Ghidra address:
USA: 0x80214a3c
Ghidra address:
Asia: 0x80214598
Ghidra address:
EUR: 0x80215b08
Ghidra address:
JPN: 0x802155cc

◆ InitAllRumblePaks()

void InitAllRumblePaks ( void )

Look for a Rumble Pak in the controller of each player at this console, and stop its motor.

Ghidra address:
USA: 0x80214bec
Ghidra address:
Asia: 0x80214748
Ghidra address:
EUR: 0x80215cb8
Ghidra address:
JPN: 0x80215744

◆ ProcessPakDataScreen()

s32 ProcessPakDataScreen ( s32 dataType,
u8 quiet )

Run one frame of the screen that loads or saves data on a Controller Pak.

Parameters
dataTypeThe data to load or save, a PAK_DATA_* value.
quietWork without fading the sounds or showing any message, and finish when the data is missing.
Returns
Nonzero once the screen is finished.
Ghidra address:
USA: 0x80214e0c
Ghidra address:
Asia: 0x80214968
Ghidra address:
EUR: 0x80215ed8
Ghidra address:
JPN: 0x80215964

Variable Documentation

◆ g_bSaveLoadEntryPoint

u8 g_bSaveLoadEntryPoint
extern

Which screen opened the save and load menu, by the SAVE_LOAD_FROM_ values.

Ghidra address:
USA: 0x802724f4
Ghidra address:
Asia: 0x80272044
Ghidra address:
EUR: 0x802744a4
Ghidra address:
JPN: 0x80273f54