Skip to content

Commit

Permalink
Ensure that gamepad device name is valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3gfaultx committed Aug 30, 2024
1 parent cfc785c commit ce1d652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -4583,7 +4583,7 @@ bool config_load_remap(const char *directory_input_remapping,
settings_t *settings = config_st;
bool notification_show_remap_load = settings->bools.notification_show_remap_load;
unsigned joypad_port = settings->uints.input_joypad_index[0];
const char *input_device_name = input_config_get_device_name(joypad_port);
const char *input_device_name = input_config_get_device_display_name(joypad_port);
const char *input_device_dir = NULL;
char *remap_path = NULL;
bool sort_remaps_by_controller = settings->bools.input_remap_sort_by_controller_enable;
Expand Down
2 changes: 1 addition & 1 deletion menu/cbs/menu_cbs_ok.c
Original file line number Diff line number Diff line change
Expand Up @@ -3653,7 +3653,7 @@ static int generic_action_ok_remap_file_operation(const char *path,
settings_t *settings = config_get_ptr();
const char *directory_input_remapping = settings->paths.directory_input_remapping;
unsigned joypad_port = settings->uints.input_joypad_index[0];
const char *input_device_name = input_config_get_device_name(joypad_port);
const char *input_device_name = input_config_get_device_display_name(joypad_port);
const char *input_device_dir = NULL;
char *remap_path = NULL;
bool sort_remaps_by_controller = settings->bools.input_remap_sort_by_controller_enable;
Expand Down

0 comments on commit ce1d652

Please sign in to comment.