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

The loading of saved profiles, ghosts, and binary configuration blocks. More...

Go to the source code of this file.

Classes

union  ConfigLoadArgument
 The shared argument slot for an optional-load flag or a custom path. More...

Enumerations

enum  ConfigLoadType {
  CONFIG_LOAD_CURRENT_SEASON = 0 , CONFIG_LOAD_GHOST = 1 , CONFIG_LOAD_EQUIPMENT = 2 , CONFIG_LOAD_RAW = 3 ,
  CONFIG_LOAD_SEASON_FILE = 4
}
 The configuration sources accepted by LoadConfigData(). More...

Functions

bool LoadConfigData (int nConfigType, ConfigLoadArgument argument)
 Load the selected profile, ghost, or binary configuration data.

Variables

int g_dwConfigValue0
 The first persisted configuration value, unused after loading.
int g_dwConfigValue1
 The second persisted configuration value, unused after loading.
int g_bSpeedUnitsMph
 Whether the speed display uses miles per hour.
const char g_szCRallyConfigDat []
 The path used for binary configuration reads.

Detailed Description

The loading of saved profiles, ghosts, and binary configuration blocks.

Enumeration Type Documentation

◆ ConfigLoadType

The configuration sources accepted by LoadConfigData().

Enumerator
CONFIG_LOAD_CURRENT_SEASON 

Apply the current season profile.

CONFIG_LOAD_GHOST 

Read the selected ghost file.

CONFIG_LOAD_EQUIPMENT 

Read both configuration blocks and apply equipment.

CONFIG_LOAD_RAW 

Read both configuration blocks without applying them.

CONFIG_LOAD_SEASON_FILE 

Read the selected season file.

Function Documentation

◆ LoadConfigData()

bool LoadConfigData ( int nConfigType,
ConfigLoadArgument argument )

Load the selected profile, ghost, or binary configuration data.

Parameters
nConfigTypeA ConfigLoadType value, or a custom-read type.
argumentThe optional-load flag for known types, or a custom path whose pointer bits also provide the read size.
Returns
Whether loading succeeded. An open failure returns the low-byte flag; short reads fail.
Ghidra address:
BRD3D: 0x10071130
Ghidra address:
BRGlide: 0x1006a080

Variable Documentation

◆ g_dwConfigValue0

int g_dwConfigValue0
extern

The first persisted configuration value, unused after loading.

Ghidra address:
BRD3D: 0x100adf58
Ghidra address:
BRGlide: 0x100ad760

◆ g_dwConfigValue1

int g_dwConfigValue1
extern

The second persisted configuration value, unused after loading.

Ghidra address:
BRD3D: 0x100adf5c
Ghidra address:
BRGlide: 0x100ad764

◆ g_bSpeedUnitsMph

int g_bSpeedUnitsMph
extern

Whether the speed display uses miles per hour.

Ghidra address:
BRD3D: 0x100adf60
Ghidra address:
BRGlide: 0x100ad768

◆ g_szCRallyConfigDat

const char g_szCRallyConfigDat[]
extern

The path used for binary configuration reads.

Ghidra address:
BRD3D: 0x100b5dd0
Ghidra address:
BRGlide: 0x100b55d8