|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Macros | |
| #define | CONFIG_GAMEPAD_AXIS_FIELDS(X) |
| #define | CONFIG_GAMEPAD_DEADZONE_FIELDS(X) |
Enumerations | |
| enum | { CONFIG_BOOL = DTTR_CONFIG_VALUE_BOOL , CONFIG_SCALING_FIT = DTTR_CONFIG_VALUE_SCALING_FIT , CONFIG_SCALING_METHOD = DTTR_CONFIG_VALUE_SCALING_METHOD , CONFIG_GRAPHICS_API = DTTR_CONFIG_VALUE_GRAPHICS_API , CONFIG_INT = DTTR_CONFIG_VALUE_INT , CONFIG_FLOAT = DTTR_CONFIG_VALUE_FLOAT , CONFIG_PRESENT_FILTER = DTTR_CONFIG_VALUE_PRESENT_FILTER , CONFIG_LOG_LEVEL = DTTR_CONFIG_VALUE_LOG_LEVEL , CONFIG_MINIDUMP_TYPE = DTTR_CONFIG_VALUE_MINIDUMP_TYPE , CONFIG_STRING = DTTR_CONFIG_VALUE_STRING , CONFIG_VERTEX_PRECISION = DTTR_CONFIG_VALUE_VERTEX_PRECISION , CONFIG_GAMEPAD_AXIS = DTTR_CONFIG_VALUE_GAMEPAD_AXIS } |
Functions | |
| static bool | config_sections_match (const char *lhs, const char *rhs) |
| static void | config_clear_button_map (int *map) |
| const DTTR_ConfigFieldSpec * | config_schema_find (const char *section, const char *key) |
| bool | config_parse_bool (const char *value, bool *out_value) |
| bool | config_parse_scaling_fit (const char *value, DTTR_ScalingMode *out_value) |
| bool | config_parse_scaling_method (const char *value, DTTR_ScalingMethod *out_value) |
| bool | config_parse_graphics_api (const char *value, DTTR_GraphicsApi *out_value) |
| bool | config_parse_int (const char *value, int *out_value) |
| bool | config_parse_float (const char *value, float *out_value) |
| bool | config_parse_present_filter (const char *value, SDL_GPUFilter *out_value) |
| bool | config_parse_gamepad_source (const char *value, int *out_value) |
| bool | config_parse_game_action (const char *value, int *out_value) |
| bool | config_parse_gamepad_axis (const char *value, int *out_value) |
| bool | config_parse_log_level (const char *value, int *out_value) |
| bool | config_parse_minidump_type (const char *value, DTTR_MinidumpType *out_value) |
| bool | config_parse_string (const char *value, char *out_value, size_t out_size) |
| bool | config_parse_vertex_precision (const char *value, DTTR_VertexPrecision *out_value) |
| void | config_format_int (int value, char *buf, size_t buf_size) |
| void | config_format_float (float value, char *buf, size_t buf_size) |
| const char * | config_format_scaling_fit (DTTR_ScalingMode mode) |
| const char * | config_format_scaling_method (DTTR_ScalingMethod method) |
| const char * | config_format_graphics_api (DTTR_GraphicsApi api) |
| const char * | config_format_present_filter (SDL_GPUFilter filter) |
| const char * | config_format_log_level (int level) |
| const char * | config_format_minidump_type (DTTR_MinidumpType type) |
| const char * | config_format_gamepad_source (int source) |
| const char * | config_format_game_action (int action) |
| const char * | config_format_gamepad_axis (int axis) |
| const char * | config_format_vertex_precision (DTTR_VertexPrecision precision) |
| bool | config_apply_entry (DTTR_Config *config, const char *section, const char *key, const char *value) |
| #define CONFIG_GAMEPAD_AXIS_FIELDS | ( | X | ) |
Definition at line 25 of file config_internal.h.
| #define CONFIG_GAMEPAD_DEADZONE_FIELDS | ( | X | ) |
Definition at line 30 of file config_internal.h.
| anonymous enum |
Definition at line 10 of file config_internal.h.
| bool config_apply_entry | ( | DTTR_Config * | config, |
| const char * | section, | ||
| const char * | key, | ||
| const char * | value ) |
Definition at line 252 of file schema.c.
References CONFIG_ASSIGN_CASE, config_assign_string(), CONFIG_ASSIGN_TYPES, config_schema_find(), CONFIG_STRING, DTTR_ConfigFieldSpec::offset, DTTR_ConfigFieldSpec::size, and DTTR_ConfigFieldSpec::value_type.
Referenced by config_apply_json_value().
|
inlinestatic |
Definition at line 39 of file config_internal.h.
References DTTR_GAMEPAD_MAPPING_NONE, and DTTR_GAMEPAD_SOURCE_COUNT.
Referenced by config_apply_buttons(), and DTTR_Config_ClearGamepadButtonMap().
| const char * config_format_game_action | ( | int | action | ) |
Referenced by config_add_gamepad_buttons().
| const char * config_format_gamepad_axis | ( | int | axis | ) |
Referenced by config_format_field_string().
| const char * config_format_gamepad_source | ( | int | source | ) |
References source.
Referenced by config_add_gamepad_buttons().
| const char * config_format_graphics_api | ( | DTTR_GraphicsApi | api | ) |
Referenced by config_format_field_string(), and DTTR_Config_GraphicsAPIName().
| void config_format_int | ( | int | value, |
| char * | buf, | ||
| size_t | buf_size ) |
| const char * config_format_log_level | ( | int | level | ) |
Referenced by config_format_field_string().
| const char * config_format_minidump_type | ( | DTTR_MinidumpType | type | ) |
References type.
Referenced by config_format_field_string().
| const char * config_format_present_filter | ( | SDL_GPUFilter | filter | ) |
Referenced by config_format_field_string().
| const char * config_format_scaling_fit | ( | DTTR_ScalingMode | mode | ) |
Referenced by config_format_field_string().
| const char * config_format_scaling_method | ( | DTTR_ScalingMethod | method | ) |
Referenced by config_format_field_string().
| const char * config_format_vertex_precision | ( | DTTR_VertexPrecision | precision | ) |
Referenced by config_format_field_string().
| bool config_parse_bool | ( | const char * | value, |
| bool * | out_value ) |
| bool config_parse_float | ( | const char * | value, |
| float * | out_value ) |
| bool config_parse_game_action | ( | const char * | value, |
| int * | out_value ) |
Definition at line 322 of file parse.c.
References config_parse_choice(), and DTTR_CONFIG_CHOICES_GAME_ACTION.
Referenced by config_apply_buttons().
| bool config_parse_gamepad_axis | ( | const char * | value, |
| int * | out_value ) |
Definition at line 326 of file parse.c.
References config_parse_choice(), and DTTR_CONFIG_CHOICES_GAMEPAD_AXIS.
| bool config_parse_gamepad_source | ( | const char * | value, |
| int * | out_value ) |
Definition at line 311 of file parse.c.
References CONFIG_GAMEPAD_SOURCE_TOKENS, and CONFIG_PARSE_TOKEN.
Referenced by config_apply_buttons().
| bool config_parse_graphics_api | ( | const char * | value, |
| DTTR_GraphicsApi * | out_value ) |
| bool config_parse_int | ( | const char * | value, |
| int * | out_value ) |
| bool config_parse_log_level | ( | const char * | value, |
| int * | out_value ) |
Definition at line 330 of file parse.c.
References config_parse_choice(), and DTTR_CONFIG_CHOICES_LOG_LEVEL.
| bool config_parse_minidump_type | ( | const char * | value, |
| DTTR_MinidumpType * | out_value ) |
Referenced by CONFIG_PARSE_CHOICE_FN().
| bool config_parse_present_filter | ( | const char * | value, |
| SDL_GPUFilter * | out_value ) |
Referenced by CONFIG_PARSE_CHOICE_FN().
| bool config_parse_scaling_fit | ( | const char * | value, |
| DTTR_ScalingMode * | out_value ) |
Referenced by CONFIG_PARSE_CHOICE_FN().
| bool config_parse_scaling_method | ( | const char * | value, |
| DTTR_ScalingMethod * | out_value ) |
Referenced by CONFIG_PARSE_CHOICE_FN().
| bool config_parse_string | ( | const char * | value, |
| char * | out_value, | ||
| size_t | out_size ) |
Definition at line 386 of file parse.c.
Referenced by config_assign_string().
| bool config_parse_vertex_precision | ( | const char * | value, |
| DTTR_VertexPrecision * | out_value ) |
Referenced by CONFIG_PARSE_CHOICE_FN().
| const DTTR_ConfigFieldSpec * config_schema_find | ( | const char * | section, |
| const char * | key ) |
Definition at line 173 of file schema.c.
References CONFIG_LOOKUP_KEY_CAPACITY, config_schema_init(), DTTR_Config_SchemaGet(), and NULL.
Referenced by apply_section(), and config_apply_entry().
|
inlinestatic |
Definition at line 35 of file config_internal.h.
Referenced by config_object_for_section().