RetroArch
|
#include <ctype.h>
#include <libretro.h>
#include <file/config_file.h>
#include <file/file_path.h>
#include <compat/strl.h>
#include <compat/posix_string.h>
#include <retro_assert.h>
#include <string/stdstring.h>
#include <streams/file_stream.h>
#include "file_path_special.h"
#include "audio/audio_driver.h"
#include "input/input_driver.h"
#include "configuration.h"
#include "content.h"
#include "config.def.h"
#include "config.features.h"
#include "input/input_keymaps.h"
#include "input/input_remapping.h"
#include "led/led_defines.h"
#include "defaults.h"
#include "core.h"
#include "dirs.h"
#include "paths.h"
#include "retroarch.h"
#include "verbosity.h"
#include "lakka.h"
#include "tasks/tasks_internal.h"
#include "../list_special.h"
#include "record/record_driver.h"
Classes | |
struct | config_bool_setting |
struct | config_int_setting |
struct | config_uint_setting |
struct | config_size_setting |
struct | config_float_setting |
struct | config_array_setting |
struct | config_path_setting |
Macros | |
#define | GENERAL_SETTING(key, configval, default_enable, default_setting, type, handle_setting) |
#define | SETTING_BOOL(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_bool_setting, handle_setting) |
#define | SETTING_FLOAT(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_float_setting, handle_setting) |
#define | SETTING_INT(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_int_setting, handle_setting) |
#define | SETTING_UINT(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_uint_setting, handle_setting) |
#define | SETTING_SIZE(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_size_setting, handle_setting) |
#define | SETTING_PATH(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_path_setting, handle_setting) |
#define | SETTING_ARRAY(key, configval, default_enable, default_setting, handle_setting) GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_array_setting, handle_setting) |
#define | SETTING_OVERRIDE(override_setting) tmp[count-1].override = override_setting |
Variables | |
static const char * | invalid_filename_chars [] |
static enum video_driver_enum | VIDEO_DEFAULT_DRIVER = VIDEO_NULL |
static enum audio_driver_enum | AUDIO_DEFAULT_DRIVER = AUDIO_NULL |
static enum audio_resampler_driver_enum | AUDIO_DEFAULT_RESAMPLER_DRIVER = AUDIO_RESAMPLER_SINC |
static enum record_driver_enum | RECORD_DEFAULT_DRIVER = RECORD_NULL |
static enum midi_driver_enum | MIDI_DEFAULT_DRIVER = MIDI_NULL |
static enum input_driver_enum | INPUT_DEFAULT_DRIVER = INPUT_NULL |
static enum joypad_driver_enum | JOYPAD_DEFAULT_DRIVER = JOYPAD_NULL |
static enum camera_driver_enum | CAMERA_DEFAULT_DRIVER = CAMERA_NULL |
static enum wifi_driver_enum | WIFI_DEFAULT_DRIVER = WIFI_NULL |
static enum location_driver_enum | LOCATION_DEFAULT_DRIVER = LOCATION_NULL |
static enum menu_driver_enum | MENU_DEFAULT_DRIVER = MENU_NULL |
struct defaults | g_defaults |
static settings_t * | configuration_settings = NULL |
#define GENERAL_SETTING | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
type, | |||
handle_setting | |||
) |
#define SETTING_ARRAY | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_array_setting, handle_setting) |
#define SETTING_BOOL | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_bool_setting, handle_setting) |
#define SETTING_FLOAT | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_float_setting, handle_setting) |
#define SETTING_INT | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_int_setting, handle_setting) |
#define SETTING_OVERRIDE | ( | override_setting | ) | tmp[count-1].override = override_setting |
#define SETTING_PATH | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_path_setting, handle_setting) |
#define SETTING_SIZE | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_size_setting, handle_setting) |
#define SETTING_UINT | ( | key, | |
configval, | |||
default_enable, | |||
default_setting, | |||
handle_setting | |||
) | GENERAL_SETTING(key, configval, default_enable, default_setting, struct config_uint_setting, handle_setting) |
enum audio_driver_enum |
enum camera_driver_enum |
enum input_driver_enum |
enum joypad_driver_enum |
enum location_driver_enum |
enum menu_driver_enum |
enum midi_driver_enum |
enum osk_driver_enum |
enum record_driver_enum |
enum video_driver_enum |
enum wifi_driver_enum |
|
static |
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_led:
Gets default led driver.
Returns: Default led 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.
|
static |
config_load: : path to be read from. : set default values first before reading the values from the config file
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.
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.
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.
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.
|
static |
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.
config_unload_override:
Unloads configuration overrides if overrides are active.
Returns: false if there was an error.
|
static |
open_default_config_file
Open a default config file. Platform-specific.
Returns: handle to config file if found, otherwise NULL.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
save_keybind: : pointer to config file object : prefix name of keybind : base name of keybind : pointer to key binding object : save keyboard binds
Save a key binding to the config file.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
save_keybinds_user: : pointer to config file object : user number
Save the current keybinds of a user () to the config file ().
|
static |
|
static |
|
static |
|
static |
struct defaults g_defaults |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |