coastline 0.0.4
Loading...
Searching...
No Matches
configuration.h File Reference
#include <stdint.h>
Include dependency graph for configuration.h:

Go to the source code of this file.

Functions

int __stdcall ValidateEarTitleConfiguration (uint32_t required)
 Check that the configuration file configured the library and the game for the audio engine, unless the check is disabled.
int ValidateEarAudioComponents (void)
 Check that the loaded audio components are those the configuration records, and show a message for each that is not.
uint32_t __stdcall ValidateEarNumericCode (uint32_t code)
 Nonzero when config.ear includes the global configuration section.
void __stdcall LoadEarConfiguration (uint32_t code)
 Read the global section of config.ear in the system directory, then, unless the code reads only that section, the section of the title the code selects, and write its launch count back one higher.
int __stdcall EAR_DLL_AAA_Validate (uint32_t code)
 Validate the code of the game and load the configuration it selects.

Function Documentation

◆ ValidateEarTitleConfiguration()

int __stdcall ValidateEarTitleConfiguration ( uint32_t required)

Check that the configuration file configured the library and the game for the audio engine, unless the check is disabled.

Parameters
requiredWhether a missing configuration shows a message and fails.
Returns
Whether the configuration is valid.
Ghidra address:
EAR: 0x10005d66

◆ ValidateEarAudioComponents()

int ValidateEarAudioComponents ( void )

Check that the loaded audio components are those the configuration records, and show a message for each that is not.

Returns
Whether every component is as configured.
Ghidra address:
EAR: 0x10005c48

◆ ValidateEarNumericCode()

uint32_t __stdcall ValidateEarNumericCode ( uint32_t code)

Nonzero when config.ear includes the global configuration section.

Ghidra address:
EAR: 0x1003b704
Parameters
codeThe code the game passes.
Returns
Whether the code is valid.
Ghidra address:
EAR: 0x10003d15

◆ LoadEarConfiguration()

void __stdcall LoadEarConfiguration ( uint32_t code)

Read the global section of config.ear in the system directory, then, unless the code reads only that section, the section of the title the code selects, and write its launch count back one higher.

Parameters
codeThe code the game passes.
Ghidra address:
EAR: 0x100051a7

◆ EAR_DLL_AAA_Validate()

int __stdcall EAR_DLL_AAA_Validate ( uint32_t code)

Validate the code of the game and load the configuration it selects.

Parameters
codeThe code the game passes.
Returns
Whether the code is valid.
Ghidra address:
EAR: 0x1000ba60