RetroArch
|
#include <stdint.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <retro_miscellaneous.h>
#include "gfx/video_driver.h"
#include "input/input_defines.h"
#include "led/led_defines.h"
Go to the source code of this file.
Classes | |
struct | settings |
Macros | |
#define | configuration_set_float(settings, var, newvar) |
#define | configuration_set_bool(settings, var, newvar) |
#define | configuration_set_uint(settings, var, newvar) |
#define | configuration_set_int(settings, var, newvar) |
Typedefs | |
typedef RETRO_BEGIN_DECLS struct settings | settings_t |
Enumerations | |
enum | crt_switch_type { CRT_SWITCH_NONE = 0, CRT_SWITCH_15KHZ, CRT_SWITCH_31KHZ } |
enum | override_type { OVERRIDE_NONE = 0, OVERRIDE_CORE, OVERRIDE_CONTENT_DIR, OVERRIDE_GAME } |
#define configuration_set_bool | ( | settings, | |
var, | |||
newvar | |||
) |
#define configuration_set_float | ( | settings, | |
var, | |||
newvar | |||
) |
#define configuration_set_int | ( | settings, | |
var, | |||
newvar | |||
) |
#define configuration_set_uint | ( | settings, | |
var, | |||
newvar | |||
) |
typedef RETRO_BEGIN_DECLS struct settings settings_t |
enum crt_switch_type |
enum override_type |
config_get_default_audio:
Gets default audio driver.
Returns: Default audio driver.
config_get_default_audio_resampler:
Gets default audio resampler driver.
Returns: Default audio resampler driver.
config_get_default_camera:
Gets default camera driver.
Returns: Default camera driver.
config_get_default_input:
Gets default input driver.
Returns: Default input driver.
config_get_default_joypad:
Gets default input joypad driver.
Returns: Default input joypad driver.
config_get_default_location:
Gets default location driver.
Returns: Default location driver.
config_get_default_menu:
Gets default menu driver.
Returns: Default menu driver.
config_get_default_video:
Gets default video driver.
Returns: Default video driver.
config_get_default_wifi:
Gets default wifi driver.
Returns: Default wifi driver.
settings_t* config_get_ptr | ( | void | ) |
config_load:
Loads a config file and reads all the values into memory.
config_load_override:
Tries to append game-specific and core-specific configuration. These settings will always have precedence, thus this feature can be used to enforce overrides.
Returns: false if there was an error or no action was performed.
config_load_override:
Tries to append game-specific and core-specific configuration. These settings will always have precedence, thus this feature can be used to enforce overrides.
This function only has an effect if a game-specific or core-specific configuration file exists at respective locations.
core-specific: $CONFIG_DIR/$CORE_NAME/$CORE_NAME.cfg fallback: $CURRENT_CFG_LOCATION/$CORE_NAME/$CORE_NAME.cfg
game-specific: $CONFIG_DIR/$CORE_NAME/$ROM_NAME.cfg fallback: $CURRENT_CFG_LOCATION/$CORE_NAME/$GAME_NAME.cfg
Returns: false if there was an error or no action was performed.
config_load_remap:
Tries to append game-specific and core-specific remap files.
Returns: false if there was an error or no action was performed.
config_load_remap:
Tries to append game-specific and core-specific remap files.
This function only has an effect if a game-specific or core-specific configuration file exists at respective locations.
core-specific: $REMAP_DIR/$CORE_NAME/$CORE_NAME.cfg game-specific: $REMAP_DIR/$CORE_NAME/$GAME_NAME.cfg
Returns: false if there was an error or no action was performed.
config_load_shader_preset:
Tries to append game-specific and core-specific shader presets.
Returns: false if there was an error or no action was performed.
config_load_shader_preset:
Tries to append game-specific and core-specific shader presets.
This function only has an effect if a game-specific or core-specific configuration file exists at respective locations.
core-specific: $SHADER_DIR/presets/$CORE_NAME/$CORE_NAME.cfg game-specific: $SHADER_DIR/presets/$CORE_NAME/$GAME_NAME.cfg
Returns: false if there was an error or no action was performed.
config_save_autoconf_profile: : Path that shall be written to. : Controller number to save Writes a controller autoconf file to disk.
config_save_file: : Path that shall be written to.
Writes a config file to disk.
Returns: true (1) on success, otherwise returns false (0).
bool config_save_overrides | ( | int | override_type | ) |
config_save_overrides: : Path that shall be written to.
Writes a config file override to disk.
Returns: true (1) on success, otherwise returns false (0).
config_set_defaults:
Set 'default' configuration values.