coastline 0.0.4
Loading...
Searching...
No Matches
frontendstate.h
Go to the documentation of this file.
1#ifndef COASTLINE_FRONTENDSTATE_H
2#define COASTLINE_FRONTENDSTATE_H
3
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15#define KEY_CONFIG_ENTRY_COUNT 21
16
18#define FRONT_END_SAVE_PATH_SIZE 260
19
20#if TGR_PLATFORM == TGR_PLATFORM_SDL
41
47
49#define g_szConfigFilePath (GetSdlFrontEndState()->configPath)
51#define g_szSeasonSaveFileName (GetSdlFrontEndState()->seasonPath)
53#define g_szTimeAttackSaveFileName (GetSdlFrontEndState()->timeAttackPath)
55#define g_dwChosenCar (GetSdlFrontEndState()->chosenCar)
57#define g_dwInNetworkCarSetup (GetSdlFrontEndState()->networkCarSetup)
59#define g_dwFrontEndAtRootMenu (GetSdlFrontEndState()->rootMenu)
61#define g_dwSelectedTransmission (GetSdlFrontEndState()->transmission)
63#define g_dwTireMenuIndex (GetSdlFrontEndState()->tires)
65#define g_dwSuspensionMenuIndex (GetSdlFrontEndState()->suspension)
67#define g_dwCarMenuIndex (GetSdlFrontEndState()->car)
69#define g_dwTotalLapsSetting (GetSdlFrontEndState()->laps)
71#define g_dwAccumUnlockedCarMask (GetSdlFrontEndState()->unlockedCars)
73#define g_dwAccumUnlockedTrackMask (GetSdlFrontEndState()->unlockedTracks)
75#define g_dwHandlingTypeMenuIndex (GetSdlFrontEndState()->handling)
77#define g_dwRunBenchmark (GetSdlFrontEndState()->benchmark)
79#define g_dwNetworkPlayMode (GetSdlFrontEndState()->networkPlay)
81#define g_dwNullStubEnable (GetSdlFrontEndState()->frontEndEnabled)
82#else
90
98
105extern int g_dwFrontEndAtRootMenu;
106
113extern int g_dwSelectedTransmission;
114
121extern int g_dwTireMenuIndex;
122
129extern int g_dwSuspensionMenuIndex;
130
137extern int g_dwCarMenuIndex;
138
145extern int g_dwTotalLapsSetting;
146
153extern int g_dwAccumUnlockedCarMask;
154
162
170
177extern int g_dwInNetworkCarSetup;
178#endif /* TGR_PLATFORM == TGR_PLATFORM_SDL */
179
180#if TGR_PLATFORM == TGR_PLATFORM_WIN
187
195void ShowErrorMessage(int nErrorCode);
196
203
210
213#endif
214
215#ifdef __cplusplus
216}
217#endif
218
219#endif /* COASTLINE_FRONTENDSTATE_H */
#define g_dwAccumUnlockedTrackMask
Definition frontendstate.h:73
#define g_dwSuspensionMenuIndex
Definition frontendstate.h:65
#define g_dwInNetworkCarSetup
Definition frontendstate.h:57
#define g_dwSelectedTransmission
Definition frontendstate.h:61
void BackupMenuSelections(void)
Copy the choices of the menus to adwMenuSelectionBackup of g_GlobalRallyConfig.
#define g_dwTotalLapsSetting
Definition frontendstate.h:69
SdlFrontEndState * GetSdlFrontEndState(void)
#define g_szSeasonSaveFileName
Definition frontendstate.h:51
void StopActiveFrontEndForSeasonTransition(void)
Stop and shut down the active menu screen after a season transition.
void ShowErrorMessage(int nErrorCode)
Show an error of the game in a message box from its second character, and exit when the error is fata...
#define g_dwAccumUnlockedCarMask
Definition frontendstate.h:71
#define g_dwFrontEndAtRootMenu
Definition frontendstate.h:59
#define g_dwHandlingTypeMenuIndex
Definition frontendstate.h:75
#define g_szTimeAttackSaveFileName
Definition frontendstate.h:53
#define g_dwTireMenuIndex
Definition frontendstate.h:63
#define g_dwCarMenuIndex
Definition frontendstate.h:67
void ResetMenuSelectionsToDefaults(void)
Reset menu selections, championship profiles, and result display values.
void ResolveRaceSelections(void)
Restore menu choices, advance unavailable selections, and apply race settings.
#define FRONT_END_SAVE_PATH_SIZE
The size of the path of a saved season or ghost, MAX_PATH of Windows.
Definition frontendstate.h:18
Front-end choices and host paths for one active game session.
Definition frontendstate.h:22
int frontEndEnabled
Definition frontendstate.h:39
int benchmark
Definition frontendstate.h:37
int chosenCar
Definition frontendstate.h:26
int networkCarSetup
Definition frontendstate.h:27
int rootMenu
Definition frontendstate.h:28
int laps
Definition frontendstate.h:33
char configPath[4096]
Definition frontendstate.h:23
char timeAttackPath[FRONT_END_SAVE_PATH_SIZE]
Definition frontendstate.h:25
char seasonPath[FRONT_END_SAVE_PATH_SIZE]
Definition frontendstate.h:24
int handling
Definition frontendstate.h:36
int suspension
Definition frontendstate.h:31
int unlockedTracks
Definition frontendstate.h:35
int transmission
Definition frontendstate.h:29
int networkPlay
Definition frontendstate.h:38
int tires
Definition frontendstate.h:30
int unlockedCars
Definition frontendstate.h:34
int car
Definition frontendstate.h:32