|
coastline 0.0.4
|
The options menu, the save and load menu, and the screen that loads or saves data on a Controller Pak. More...
#include <PR/ultratypes.h>#include "common/frontendscreens.h"#include "common/optionsettings.h"#include "common/volumecontrols.h"#include "racemenu.h"
Go to the source code of this file.
Classes | |
| struct | SaveLoadMenuItem |
| A row of the save and load menu. More... | |
Enumerations | |
| enum | { OPTIONS_ITEM_BGM , OPTIONS_ITEM_SFX , OPTIONS_ITEM_UNITS , OPTIONS_ITEM_CONTROLLER , OPTIONS_ITEM_SAVE_CONFIGURATION , OPTIONS_ITEM_LOAD_CONFIGURATION , OPTIONS_ITEM_CREDITS , OPTIONS_ITEMS } |
| The items of the options menu. More... | |
| enum | { SAVE_LOAD_LOAD_SEASON , SAVE_LOAD_SAVE_SEASON , SAVE_LOAD_LOAD_GHOST , SAVE_LOAD_SAVE_GHOST , SAVE_LOAD_LOAD_OPTIONS , SAVE_LOAD_SAVE_OPTIONS , SAVE_LOAD_CHOICES } |
| The choices of the save and load menu. More... | |
| enum | { SAVE_LOAD_LOAD_SEASON_GAME_PAK = SAVE_LOAD_CHOICES , SAVE_LOAD_SAVE_SEASON_GAME_PAK , SAVE_LOAD_LOAD_OPTIONS_GAME_PAK , SAVE_LOAD_SAVE_OPTIONS_GAME_PAK , SAVE_LOAD_ERASE_GAME_PAK , SAVE_LOAD_EXIT , SAVE_LOAD_ROW_HEADING = 0xD , SAVE_LOAD_ROW_SMALL_GAP , SAVE_LOAD_ROW_GAP } |
| The actions of the other rows of the save and load menu, after the SAVE_LOAD_ choices. More... | |
Functions | |
| void | OptionsMenuPostDraw (s32 item) |
| Draw the hint of the volume items, and run the screen that loads or saves the configuration while the options menu asks for it. | |
| void | SaveGameDataToEeprom (void) |
| Write the equipment of both players and the options to the EEPROM of the cartridge, with the whole profile of the first player when the EEPROM fails its checksum. | |
| s32 | DrawRumblePakPrompt (s32 anyPlayer) |
| Ask the player to put the Rumble Pak back, and wait for A. | |
| s32 | IsRumblePakMissing (void) |
| Whether a player at this console has no working Rumble Pak in the controller. | |
Variables | |
| MenuItem | g_aOptionsMenuItems [OPTIONS_ITEMS] |
| The items of the options menu, by the OPTIONS_ITEM_ values. | |
| MenuItem * | g_apOptionsMenuItems [] |
| The items of the options menu, ending with NULL. | |
| s32 | g_dwOptionsChangedNeedsSave |
| Whether a setting of the options menu changed since the menu opened, and the game data needs saving to the EEPROM. | |
| u8 | g_bSaveLoadMenuInitialized |
| Whether the save and load menu, or the screen of the Controller Pak data, is set up. | |
| u8 | g_bSaveLoadRumbleSwapPending |
| Whether the player swapped the Rumble Pak for the Controller Pak, and is asked to swap it back afterwards. | |
| u8 * | g_pPakDataBuffer |
| The buffer the data is read into and written from. | |
| u8 | g_abSaveLoadSeasonNoteName [16] |
| The names of the notes of the save and load menu in the characters of the Controller Pak: "TOP GEAR SEA", "TOP GEAR GHO" and "TOP GEAR OPTIONS". | |
| u8 | g_abSaveLoadGhostNoteName [16] |
| The Controller Pak note name for a saved ghost car in the save and load menu. | |
| u8 | g_abSaveLoadOptionsNoteName [16] |
| The Controller Pak note name for saved options in the save and load menu. | |
| u8 | g_abSaveLoadNoteExtension [4] |
| The extension of the notes, which is empty. | |
| const char * | g_apszSaveLoadChoices [SAVE_LOAD_CHOICES] |
| The names of the choices of the save and load menu. | |
| u8 | g_bSaveLoadChoice |
| The choice of the save and load menu, by the SAVE_LOAD_ values. | |
| SaveLoadMenuItem | g_aLoadMenuItems [] |
| The rows of the save and load menu opened from the main menu, for the Game Pak and the Controller Pak. | |
| SaveLoadMenuItem | g_aSaveSeasonMenuItems [] |
| The rows of the save and load menu after a championship race. | |
| SaveLoadMenuItem | g_aSaveGhostMenuItems [] |
| The rows of the save and load menu after a time attack. | |
| u8 | g_bSaveLoadMenuCursor |
| The row of the save and load menu under the cursor. | |
| u8 | g_bSaveLoadStep |
| The step of the save and load menu. | |
| u8 | g_abPakDataSeasonNoteName [16] |
| The same names and extension for the screen of the Controller Pak data, whose options note is the configuration. | |
| u8 | g_abPakDataGhostNoteName [16] |
| The Controller Pak note name for a saved ghost car on the Pak data screen. | |
| u8 | g_abPakDataConfigurationNoteName [16] |
| The Controller Pak note name for a saved configuration on the Pak data screen. | |
| u8 | g_abPakDataNoteExtension [4] |
| The empty extension of the Controller Pak notes on the Pak data screen. | |
| s32 | g_bLoadConfigurationPending |
| Whether the options menu opens the screen that loads or saves the configuration. | |
| s32 | g_bSaveConfigurationPending |
| Whether the options menu opens the screen that saves the configuration. | |
| char | g_szBgmVolumeTextBuf [0x18] |
| The names of the volume items. | |
| char | g_szSfxVolumeTextBuf [0x18] |
| The text of the sound effects volume item in the options menu. | |
| u8 | g_abSavePakIdKnown [2] |
| Whether g_aabSavePakIds holds the identity of the Pak of each of the first two players. | |
| u8 | g_bSaveLoadDataWasLoaded |
| Whether the save and load menu loaded a season or a ghost car. | |
| u8 | g_bSaveLoadSkipEepromProbe |
| Whether the next EEPROM step of the save and load menu writes without probing and reading the EEPROM again, once the player confirmed the overwrite. | |
| u8 | g_bSaveLoadInputEnabled |
| Whether the save and load menu takes the input of its choices. | |
| s32 | g_dwSaveLoadNoteIndex |
| The note the save and load menu found or made. | |
| u8 | g_bSaveLoadFadeDelayFrames |
| The frames the save and load menu waited once the sounds faded out. | |
| s32 | g_dwPakDataNoteIndex |
| The note the screen of the Controller Pak data found or made. | |
| u8 | g_bPakDataStep |
| The step of the screen of the Controller Pak data. | |
| u8 | g_bPakDataWaitFrames |
| The frames the screen of the Controller Pak data waited once the sounds faded out. | |
The options menu, the save and load menu, and the screen that loads or saves data on a Controller Pak.
| anonymous enum |
The items of the options menu.
| anonymous enum |
The choices of the save and load menu.
| anonymous enum |
The actions of the other rows of the save and load menu, after the SAVE_LOAD_ choices.
| void OptionsMenuPostDraw | ( | s32 | item | ) |
Draw the hint of the volume items, and run the screen that loads or saves the configuration while the options menu asks for it.
| item | The selected item, by the OPTIONS_ITEM_ values. |
| void SaveGameDataToEeprom | ( | void | ) |
Write the equipment of both players and the options to the EEPROM of the cartridge, with the whole profile of the first player when the EEPROM fails its checksum.
Ask the player to put the Rumble Pak back, and wait for A.
| anyPlayer | Take A from either of the first two players rather than the choosing one. |
| s32 IsRumblePakMissing | ( | void | ) |
Whether a player at this console has no working Rumble Pak in the controller.
Nothing calls it.
|
extern |
The items of the options menu, by the OPTIONS_ITEM_ values.
|
extern |
The items of the options menu, ending with NULL.
|
extern |
Whether a setting of the options menu changed since the menu opened, and the game data needs saving to the EEPROM.
|
extern |
Whether the save and load menu, or the screen of the Controller Pak data, is set up.
|
extern |
Whether the player swapped the Rumble Pak for the Controller Pak, and is asked to swap it back afterwards.
|
extern |
The buffer the data is read into and written from.
|
extern |
The names of the notes of the save and load menu in the characters of the Controller Pak: "TOP GEAR SEA", "TOP GEAR GHO" and "TOP GEAR OPTIONS".
|
extern |
The Controller Pak note name for a saved ghost car in the save and load menu.
|
extern |
The Controller Pak note name for saved options in the save and load menu.
|
extern |
The extension of the notes, which is empty.
|
extern |
The names of the choices of the save and load menu.
|
extern |
The choice of the save and load menu, by the SAVE_LOAD_ values.
|
extern |
The rows of the save and load menu opened from the main menu, for the Game Pak and the Controller Pak.
|
extern |
The rows of the save and load menu after a championship race.
|
extern |
The rows of the save and load menu after a time attack.
|
extern |
The row of the save and load menu under the cursor.
|
extern |
The step of the save and load menu.
|
extern |
The same names and extension for the screen of the Controller Pak data, whose options note is the configuration.
|
extern |
The Controller Pak note name for a saved ghost car on the Pak data screen.
|
extern |
The Controller Pak note name for a saved configuration on the Pak data screen.
|
extern |
The empty extension of the Controller Pak notes on the Pak data screen.
|
extern |
Whether the options menu opens the screen that loads or saves the configuration.
|
extern |
Whether the options menu opens the screen that saves the configuration.
|
extern |
The names of the volume items.
|
extern |
The text of the sound effects volume item in the options menu.
|
extern |
Whether g_aabSavePakIds holds the identity of the Pak of each of the first two players.
|
extern |
Whether the save and load menu loaded a season or a ghost car.
|
extern |
Whether the next EEPROM step of the save and load menu writes without probing and reading the EEPROM again, once the player confirmed the overwrite.
|
extern |
Whether the save and load menu takes the input of its choices.
|
extern |
The note the save and load menu found or made.
|
extern |
The frames the save and load menu waited once the sounds faded out.
|
extern |
The note the screen of the Controller Pak data found or made.
|
extern |
The step of the screen of the Controller Pak data.
|
extern |
The frames the screen of the Controller Pak data waited once the sounds faded out.