coastline 0.0.4
Loading...
Searching...
No Matches
options.h
Go to the documentation of this file.
1#ifndef COASTLINE_OPTIONS_H
2#define COASTLINE_OPTIONS_H
3
9
10#include <PR/ultratypes.h>
11
15#include "racemenu.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
22enum {
27#if TGR_REGION == TGR_REGION_US || TGR_REGION == TGR_REGION_ASIA
30#endif
33};
34
36enum {
44};
45
46#if TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP
48enum {
58};
59
61typedef struct {
63 const char *text;
65#endif /* TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP */
66
76
86
87#if TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP
96#endif /* TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP */
97
107
118
127extern u8 *g_pPakDataBuffer;
128
139
149
159
169
175extern const char *g_apszSaveLoadChoices[SAVE_LOAD_CHOICES];
176
183extern u8 g_bSaveLoadChoice;
184
185#if TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP
194
202
210
218#endif /* TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP */
219
228extern u8 g_bSaveLoadStep;
229
240
250
260
270
280
290
299extern char g_szBgmVolumeTextBuf[0x18];
300
309extern char g_szSfxVolumeTextBuf[0x18];
310
319extern u8 g_abSavePakIdKnown[2];
320
330
331#if TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP
340#endif /* TGR_REGION == TGR_REGION_EU || TGR_REGION == TGR_REGION_JP */
341
351
361
371
381
390extern u8 g_bPakDataStep;
391
401
413
414#if TGR_REGION == TGR_REGION_JP || TGR_REGION == TGR_REGION_EU
423#endif /* TGR_REGION == TGR_REGION_JP || TGR_REGION == TGR_REGION_EU */
424
436
447
448#ifdef __cplusplus
449}
450#endif
451
452#endif /* COASTLINE_OPTIONS_H */
The screens of the front end of the Nintendo 64 releases that the game hands over to,...
u8 g_abSavePakIdKnown[2]
Whether g_aabSavePakIds holds the identity of the Pak of each of the first two players.
u8 g_abPakDataNoteExtension[4]
The empty extension of the Controller Pak notes on the Pak data screen.
void SaveGameDataToEeprom(void)
Write the equipment of both players and the options to the EEPROM of the cartridge,...
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.
@ SAVE_LOAD_ROW_HEADING
Definition options.h:55
@ SAVE_LOAD_SAVE_OPTIONS_GAME_PAK
Definition options.h:52
@ SAVE_LOAD_LOAD_SEASON_GAME_PAK
Definition options.h:49
@ SAVE_LOAD_EXIT
Definition options.h:54
@ SAVE_LOAD_ROW_SMALL_GAP
Definition options.h:56
@ SAVE_LOAD_LOAD_OPTIONS_GAME_PAK
Definition options.h:51
@ SAVE_LOAD_ROW_GAP
Definition options.h:57
@ SAVE_LOAD_SAVE_SEASON_GAME_PAK
Definition options.h:50
@ SAVE_LOAD_ERASE_GAME_PAK
Definition options.h:53
u8 g_abPakDataSeasonNoteName[16]
The same names and extension for the screen of the Controller Pak data, whose options note is the con...
s32 IsRumblePakMissing(void)
Whether a player at this console has no working Rumble Pak in the controller.
u8 g_bSaveLoadMenuInitialized
Whether the save and load menu, or the screen of the Controller Pak data, is set up.
u8 g_abSaveLoadGhostNoteName[16]
The Controller Pak note name for a saved ghost car in the save and load menu.
s32 g_dwOptionsChangedNeedsSave
Whether a setting of the options menu changed since the menu opened, and the game data needs saving t...
SaveLoadMenuItem g_aLoadMenuItems[]
The rows of the save and load menu opened from the main menu, for the Game Pak and the Controller Pak...
u8 g_bSaveLoadFadeDelayFrames
The frames the save and load menu waited once the sounds faded out.
@ OPTIONS_ITEMS
Definition options.h:32
@ OPTIONS_ITEM_UNITS
Definition options.h:25
@ OPTIONS_ITEM_BGM
Definition options.h:23
@ OPTIONS_ITEM_SAVE_CONFIGURATION
Definition options.h:28
@ OPTIONS_ITEM_CREDITS
Definition options.h:31
@ OPTIONS_ITEM_LOAD_CONFIGURATION
Definition options.h:29
@ OPTIONS_ITEM_SFX
Definition options.h:24
@ OPTIONS_ITEM_CONTROLLER
Definition options.h:26
u8 g_abSaveLoadNoteExtension[4]
The extension of the notes, which is empty.
MenuItem * g_apOptionsMenuItems[]
The items of the options menu, ending with NULL.
u8 g_bSaveLoadSkipEepromProbe
Whether the next EEPROM step of the save and load menu writes without probing and reading the EEPROM ...
SaveLoadMenuItem g_aSaveSeasonMenuItems[]
The rows of the save and load menu after a championship race.
char g_szBgmVolumeTextBuf[0x18]
The names of the volume items.
u8 g_bSaveLoadStep
The step of the save and load menu.
@ SAVE_LOAD_LOAD_SEASON
Definition options.h:37
@ SAVE_LOAD_SAVE_GHOST
Definition options.h:40
@ SAVE_LOAD_LOAD_OPTIONS
Definition options.h:41
@ SAVE_LOAD_CHOICES
Definition options.h:43
@ SAVE_LOAD_LOAD_GHOST
Definition options.h:39
@ SAVE_LOAD_SAVE_SEASON
Definition options.h:38
@ SAVE_LOAD_SAVE_OPTIONS
Definition options.h:42
s32 DrawRumblePakPrompt(s32 anyPlayer)
Ask the player to put the Rumble Pak back, and wait for A.
u8 g_bSaveLoadInputEnabled
Whether the save and load menu takes the input of its choices.
u8 g_abPakDataConfigurationNoteName[16]
The Controller Pak note name for a saved configuration on the Pak data screen.
u8 g_bPakDataStep
The step of the screen of the Controller Pak data.
u8 * g_pPakDataBuffer
The buffer the data is read into and written from.
u8 g_bSaveLoadMenuCursor
The row of the save and load menu under the cursor.
SaveLoadMenuItem g_aSaveGhostMenuItems[]
The rows of the save and load menu after a time attack.
u8 g_bSaveLoadRumbleSwapPending
Whether the player swapped the Rumble Pak for the Controller Pak, and is asked to swap it back afterw...
u8 g_abPakDataGhostNoteName[16]
The Controller Pak note name for a saved ghost car on the Pak data screen.
s32 g_dwSaveLoadNoteIndex
The note the save and load menu found or made.
void OptionsMenuPostDraw(s32 item)
Draw the hint of the volume items, and run the screen that loads or saves the configuration while the...
u8 g_bSaveLoadDataWasLoaded
Whether the save and load menu loaded a season or a ghost car.
u8 g_bPakDataWaitFrames
The frames the screen of the Controller Pak data waited once the sounds faded out.
u8 g_abSaveLoadOptionsNoteName[16]
The Controller Pak note name for saved options in the save and load menu.
MenuItem g_aOptionsMenuItems[OPTIONS_ITEMS]
The items of the options menu, by the OPTIONS_ITEM_ values.
s32 g_dwPakDataNoteIndex
The note the screen of the Controller Pak data found or made.
u8 g_abSaveLoadSeasonNoteName[16]
The names of the notes of the save and load menu in the characters of the Controller Pak: "TOP GEAR S...
char g_szSfxVolumeTextBuf[0x18]
The text of the sound effects volume item in the options menu.
u8 g_bSaveLoadChoice
The choice of the save and load menu, by the SAVE_LOAD_ values.
const char * g_apszSaveLoadChoices[SAVE_LOAD_CHOICES]
The names of the choices of the save and load menu.
The settings of the options menu of the Nintendo 64 releases: the volumes of the music and of the sou...
The menu screens: the generic screen that turns an item at a time, the track menu,...
An item of a menu screen.
Definition trackmenuitem.h:12
A row of the save and load menu.
Definition options.h:61
const char * text
Definition options.h:63
u8 action
Definition options.h:62
Integer and floating-point types of libultra.
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18