wavelength 1.0.0
Loading...
Searching...
No Matches
gfxconfig.h File Reference
#include "math/color.h"
#include "math/vector2.h"
#include "math/vector3.h"
#include "script/dataarray.h"
Include dependency graph for gfxconfig.h:

Go to the source code of this file.

Functions

bool FindConfigArray (DataArray *pConfig, DataArray *pDefaults, const char *pszName, DataArray **ppValue, bool bFail)
 Find a child array in a configuration section or in its defaults.
bool FindConfigInt (DataArray *pConfig, DataArray *pDefaults, const char *pszName, int *pnValue, bool bFail)
 Find an integer in a configuration section or in its defaults.
bool FindConfigFloat (DataArray *pConfig, DataArray *pDefaults, const char *pszName, float *pfValue, bool bFail)
 Find a number in a configuration section or in its defaults.
bool FindConfigBool (DataArray *pConfig, DataArray *pDefaults, const char *pszName, int *pnValue, bool bFail)
 Find a flag in a configuration section or in its defaults.
bool FindConfigSymbol (DataArray *pConfig, DataArray *pDefaults, const char *pszName, const char **ppszValue, bool bFail)
 Find a symbol in a configuration section or in its defaults.
bool FindConfigVector2 (DataArray *pConfig, DataArray *pDefaults, const char *pszName, Vector2 *pValue, bool bFail)
 Find two numbers in a configuration section or in its defaults.
bool FindConfigVector3 (DataArray *pConfig, DataArray *pDefaults, const char *pszName, Vector3 *pValue, bool bFail)
 Find three numbers in a configuration section or in its defaults.
bool FindConfigColor (DataArray *pConfig, DataArray *pDefaults, const char *pszName, Color *pValue, bool bFail)
 Find a colour in a configuration section or in its defaults.
DataArray * GetGfxConfig ()
 Find the gfx section of the configuration.
DataArray * GetModeGfxConfig ()
 Find the child of the gfx section for the kind of game, solo, duel, net, or multi.

Function Documentation

◆ FindConfigArray()

bool FindConfigArray ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
DataArray ** ppValue,
bool bFail )

Find a child array in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
ppValueReceives the child array, or null.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e2ca8
Ghidra address:
PAL: 0x001eba48

◆ FindConfigInt()

bool FindConfigInt ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
int * pnValue,
bool bFail )

Find an integer in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
pnValueReceives the integer when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e2d48
Ghidra address:
PAL: 0x001ebae8

◆ FindConfigFloat()

bool FindConfigFloat ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
float * pfValue,
bool bFail )

Find a number in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
pfValueReceives the number when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e2de0
Ghidra address:
PAL: 0x001ebb80

◆ FindConfigBool()

bool FindConfigBool ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
int * pnValue,
bool bFail )

Find a flag in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
pnValueReceives 1 for a non-zero flag and 0 otherwise, when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e2e78
Ghidra address:
PAL: 0x001ebc18

◆ FindConfigSymbol()

bool FindConfigSymbol ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
const char ** ppszValue,
bool bFail )

Find a symbol in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
ppszValueReceives the symbol when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e2f10
Ghidra address:
PAL: 0x001ebcb0

◆ FindConfigVector2()

bool FindConfigVector2 ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
Vector2 * pValue,
bool bFail )

Find two numbers in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
pValueReceives the numbers when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e2fa8
Ghidra address:
PAL: 0x001ebd48

◆ FindConfigVector3()

bool FindConfigVector3 ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
Vector3 * pValue,
bool bFail )

Find three numbers in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
pValueReceives the numbers when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e3040
Ghidra address:
PAL: 0x001ebde0

◆ FindConfigColor()

bool FindConfigColor ( DataArray * pConfig,
DataArray * pDefaults,
const char * pszName,
Color * pValue,
bool bFail )

Find a colour in a configuration section or in its defaults.

Parameters
pConfigThe section, or null.
pDefaultsThe section of defaults, or null.
pszNameThe tag.
pValueReceives the colour when the entry exists.
bFailWhether to report an entry missing from both sections.
Returns
Whether the entry exists.
Ghidra address:
NTSC-U/C: 0x001e30d8
Ghidra address:
PAL: 0x001ebe78

◆ GetGfxConfig()

DataArray * GetGfxConfig ( )

Find the gfx section of the configuration.

Returns
The section.
Ghidra address:
NTSC-U/C: 0x001d8288
Ghidra address:
PAL: 0x001e1028

◆ GetModeGfxConfig()

DataArray * GetModeGfxConfig ( )

Find the child of the gfx section for the kind of game, solo, duel, net, or multi.

Returns
The section, or null.
Ghidra address:
NTSC-U/C: 0x001d8200
Ghidra address:
PAL: 0x001e0fa0