|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include "config_internal.h"#include <dttr_log.h>#include <errno.h>#include <limits.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | config_choice_list_data |
Macros | |
| #define | CONFIG_SCALING_FIT_TOKENS(X) |
| #define | CONFIG_SCALING_METHOD_TOKENS(X) |
| #define | CONFIG_GRAPHICS_API_FORMAT_TOKENS(X) |
| #define | CONFIG_PRESENT_FILTER_TOKENS(X) |
| #define | CONFIG_GAMEPAD_MISC_SOURCE_TOKENS(X) |
| #define | CONFIG_GAMEPAD_PADDLE_SOURCE_TOKENS(X) |
| #define | CONFIG_GAMEPAD_SOURCE_TOKENS(X) |
| #define | CONFIG_GAME_ACTION_TOKENS(X) |
| #define | CONFIG_GAMEPAD_AXIS_TOKENS(X) |
| #define | CONFIG_LOG_LEVEL_TOKENS(X) |
| #define | CONFIG_MINIDUMP_TYPE_TOKENS(X) |
| #define | CONFIG_VERTEX_PRECISION_TOKENS(X) |
| #define | CONFIG_CHOICE(token, enum_value) |
| #define | CONFIG_CHOICE_LIST_DATA(array) |
| #define | CONFIG_PARSE_CHOICE_FN(fn_name, type, choice_list) |
| #define | CONFIG_PARSE_TOKEN(token, enum_value) |
| #define | CONFIG_FORMAT_TOKEN(token, enum_value) |
| #define | CONFIG_FORMAT_FN(fn_name, type, arg_name, token_list, default_token) |
Variables | |
| static const DTTR_ConfigChoice | CONFIG_SCALING_FIT_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_SCALING_METHOD_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_GRAPHICS_API_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_PRESENT_FILTER_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_GAME_ACTION_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_GAMEPAD_AXIS_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_LOG_LEVEL_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_MINIDUMP_TYPE_CHOICES [] |
| static const DTTR_ConfigChoice | CONFIG_VERTEX_PRECISION_CHOICES [] |
| static const config_choice_list_data | CONFIG_CHOICE_LISTS [] |
| #define CONFIG_CHOICE | ( | token, | |
| enum_value ) |
| #define CONFIG_CHOICE_LIST_DATA | ( | array | ) |
| #define CONFIG_FORMAT_FN | ( | fn_name, | |
| type, | |||
| arg_name, | |||
| token_list, | |||
| default_token ) |
| #define CONFIG_FORMAT_TOKEN | ( | token, | |
| enum_value ) |
| #define CONFIG_GAME_ACTION_TOKENS | ( | X | ) |
| #define CONFIG_GAMEPAD_AXIS_TOKENS | ( | X | ) |
| #define CONFIG_GAMEPAD_MISC_SOURCE_TOKENS | ( | X | ) |
| #define CONFIG_GAMEPAD_PADDLE_SOURCE_TOKENS | ( | X | ) |
| #define CONFIG_GAMEPAD_SOURCE_TOKENS | ( | X | ) |
Definition at line 44 of file parse.c.
Referenced by config_parse_gamepad_source().
| #define CONFIG_GRAPHICS_API_FORMAT_TOKENS | ( | X | ) |
| #define CONFIG_LOG_LEVEL_TOKENS | ( | X | ) |
| #define CONFIG_MINIDUMP_TYPE_TOKENS | ( | X | ) |
| #define CONFIG_PARSE_CHOICE_FN | ( | fn_name, | |
| type, | |||
| choice_list ) |
| #define CONFIG_PARSE_TOKEN | ( | token, | |
| enum_value ) |
Definition at line 305 of file parse.c.
Referenced by config_parse_gamepad_source().
| #define CONFIG_PRESENT_FILTER_TOKENS | ( | X | ) |
| #define CONFIG_SCALING_FIT_TOKENS | ( | X | ) |
| #define CONFIG_SCALING_METHOD_TOKENS | ( | X | ) |
| #define CONFIG_VERTEX_PRECISION_TOKENS | ( | X | ) |
|
static |
Definition at line 190 of file parse.c.
References CONFIG_CHOICE_LISTS, and NULL.
Referenced by DTTR_Config_ChoiceCount(), DTTR_Config_ChoiceGet(), and DTTR_Config_Choices().
| void config_format_int | ( | int | value, |
| char * | buf, | ||
| size_t | buf_size ) |
| bool config_parse_bool | ( | const char * | value, |
| bool * | out_value ) |
|
static |
Definition at line 221 of file parse.c.
References count, DTTR_Config_Choices(), and DTTR_ConfigChoice::value.
Referenced by CONFIG_PARSE_CHOICE_FN(), config_parse_game_action(), config_parse_gamepad_axis(), and config_parse_log_level().
| CONFIG_PARSE_CHOICE_FN | ( | config_parse_minidump_type | , |
| DTTR_MinidumpType | , | ||
| DTTR_CONFIG_CHOICES_MINIDUMP_TYPE | ) |
Definition at line 334 of file parse.c.
References config_parse_minidump_type(), config_parse_vertex_precision(), DTTR_CONFIG_CHOICES_MINIDUMP_TYPE, DTTR_CONFIG_CHOICES_VERTEX_PRECISION, and NULL.
| CONFIG_PARSE_CHOICE_FN | ( | config_parse_scaling_fit | , |
| DTTR_ScalingMode | , | ||
| DTTR_CONFIG_CHOICES_SCALING_FIT | ) |
Definition at line 270 of file parse.c.
References config_parse_choice(), config_parse_present_filter(), config_parse_scaling_fit(), config_parse_scaling_method(), DTTR_CONFIG_CHOICES_GRAPHICS_API, DTTR_CONFIG_CHOICES_PRESENT_FILTER, DTTR_CONFIG_CHOICES_SCALING_FIT, DTTR_CONFIG_CHOICES_SCALING_METHOD, DTTR_DRIVER_DIRECT3D12_SHORT, and DTTR_GRAPHICS_API_DIRECT3D12.
| 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_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_string | ( | const char * | value, |
| char * | out_value, | ||
| size_t | out_size ) |
Definition at line 386 of file parse.c.
Referenced by config_assign_string().
| int DTTR_Config_ChoiceCount | ( | DTTR_ConfigChoiceList | list | ) |
Definition at line 198 of file parse.c.
References config_choice_list(), and data.
Referenced by gamepad_button_row_count().
| const DTTR_ConfigChoice * DTTR_Config_ChoiceGet | ( | DTTR_ConfigChoiceList | list, |
| int | index ) |
Definition at line 203 of file parse.c.
References config_choice_list(), data, and NULL.
Referenced by gamepad_button_row_choice().
| const DTTR_ConfigChoice * DTTR_Config_Choices | ( | DTTR_ConfigChoiceList | list, |
| int * | count ) |
Definition at line 212 of file parse.c.
References config_choice_list(), count, data, and NULL.
Referenced by choice_combo(), and config_parse_choice().
|
static |
Definition at line 160 of file parse.c.
Referenced by config_choice_list().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |