|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
#include "config_internal.h"#include <dttr_config.h>#include <dttr_log.h>#include <dttr_path.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | default_gamepad_binding |
Functions | |
| void | DTTR_Config_ClearGamepadButtonMap (int *map) |
| static int | find_disabled_mod (const DTTR_Config *config, const char *mod_filename) |
| bool | DTTR_Config_IsModDisabled (const DTTR_Config *config, const char *mod_filename) |
| static void | remove_disabled_mod (DTTR_Config *config, int index) |
| static bool | add_disabled_mod (DTTR_Config *config, const char *mod_filename) |
| bool | DTTR_Config_SetModEnabled (DTTR_Config *config, const char *mod_filename, bool enabled) |
| bool | DTTR_Config_DisabledModsChanged (const DTTR_Config *current, const DTTR_Config *base) |
| static void | set_default_button_map (int *map) |
| const char * | DTTR_Config_GraphicsAPIName (DTTR_GraphicsApi api) |
| Returns the config token for a graphics API selection. | |
| void | DTTR_Config_SetDefaults (DTTR_Config *config) |
| Resets a config object to built-in defaults. | |
Variables | |
| static const DTTR_Config | default_config |
| DTTR_Config | dttr_config |
| static const default_gamepad_binding | default_button_map [] |
|
static |
Definition at line 124 of file defaults.c.
References DTTR_Config::disabled_mod_count, DTTR_Config::disabled_mods, DTTR_CONFIG_DISABLED_MODS_MAX, and DTTR_Path_CopyString().
Referenced by DTTR_Config_SetModEnabled().
| void DTTR_Config_ClearGamepadButtonMap | ( | int * | map | ) |
Definition at line 72 of file defaults.c.
References config_clear_button_map().
Referenced by set_default_button_map(), and sync_config_from_rows().
| bool DTTR_Config_DisabledModsChanged | ( | const DTTR_Config * | current, |
| const DTTR_Config * | base ) |
Definition at line 166 of file defaults.c.
References DTTR_Config::disabled_mod_count, DTTR_Config::disabled_mods, and DTTR_Config_IsModDisabled().
Referenced by config_has_unsaved_changes().
| const char * DTTR_Config_GraphicsAPIName | ( | DTTR_GraphicsApi | api | ) |
Returns the config token for a graphics API selection.
Definition at line 192 of file defaults.c.
References config_format_graphics_api().
Referenced by dttr_graphics_init().
| bool DTTR_Config_IsModDisabled | ( | const DTTR_Config * | config, |
| const char * | mod_filename ) |
Definition at line 98 of file defaults.c.
References find_disabled_mod().
Referenced by draw_mod_toggle_row(), DTTR_Config_DisabledModsChanged(), and scan_mod_file().
| void DTTR_Config_SetDefaults | ( | DTTR_Config * | config | ) |
Resets a config object to built-in defaults.
Definition at line 196 of file defaults.c.
References default_config, DTTR_Config::gamepad_button_map, and set_default_button_map().
Referenced by DTTR_Config_Load(), init_state_from_args(), and reset_defaults().
| bool DTTR_Config_SetModEnabled | ( | DTTR_Config * | config, |
| const char * | mod_filename, | ||
| bool | enabled ) |
Definition at line 145 of file defaults.c.
References add_disabled_mod(), find_disabled_mod(), and remove_disabled_mod().
Referenced by config_apply_disabled_mods(), and draw_mod_toggle_row().
|
static |
Definition at line 80 of file defaults.c.
References DTTR_Config::disabled_mod_count, DTTR_Config::disabled_mods, and DTTR_Path_AsciiIeqN().
Referenced by DTTR_Config_IsModDisabled(), and DTTR_Config_SetModEnabled().
|
static |
Definition at line 102 of file defaults.c.
References DTTR_Config::disabled_mod_count, and DTTR_Config::disabled_mods.
Referenced by DTTR_Config_SetModEnabled().
|
static |
Definition at line 184 of file defaults.c.
References default_button_map, and DTTR_Config_ClearGamepadButtonMap().
Referenced by DTTR_Config_SetDefaults().
|
static |
Definition at line 55 of file defaults.c.
Referenced by set_default_button_map().
|
static |
Definition at line 13 of file defaults.c.
Referenced by DTTR_Config_SetDefaults().
| DTTR_Config dttr_config |
Definition at line 53 of file defaults.c.
Referenced by apply_section(), attempt_hot_reload_mods(), attempt_play_startup_movies(), build_saves_dir(), collect_and_upload_pending(), create_device(), create_samplers(), d3d_device7_record_draw(), DTTR_Config_Load(), dttr_graphics_hooks_init(), dttr_graphics_init(), dttr_graphics_sdl3gpu_init(), dttr_graphics_should_fill_mesh_seams(), DTTR_Hook_WinMainCallback(), dttr_inputs_handle_device_event(), dttr_inputs_hook_dinput_poll_callback(), dttr_inputs_init(), dttr_inputs_late_init(), dttr_launcher_main(), dttr_mods_hot_reload_enabled(), dttr_mss_core_sample_headroom_gain(), dttr_mss_core_sample_preemphasis(), end_frame(), end_frame(), init_sidecar_context(), load_config(), minidump_type(), open_log_file(), prepare_mod(), present_video_frame_bgra(), read_axis(), redirect_path(), save_selected_path(), scan_mod_file(), select_gl_msaa_samples(), select_msaa_sample_count(), select_render_resolution(), try_open_configured_gamepad(), unhandled_exception_filter(), upload_pending_textures_gl(), upload_texture_data(), and write_child_dump().