mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-09 03:29:43 -10:00
Stop always reseting to defaults on remap delete
This commit is contained in:
1 parent
3b4acbe5fa
commit
9eb083a864
2 files changed
+2
-14
No files matched your search
+2
-5
@@ -4339,8 +4339,6 @@ bool config_load_remap(const char *directory_input_remapping,
|
||||
FILE_PATH_REMAP_EXTENSION,
|
||||
sizeof(core_path));
|
||||
|
||||
input_remapping_set_defaults(false);
|
||||
|
||||
/* If a game remap file exists, load it. */
|
||||
if (has_content && (new_conf = config_file_new_from_path_to_string(game_path)))
|
||||
{
|
||||
@@ -5522,10 +5520,9 @@ bool input_remapping_load_file(void *data, const char *path)
|
||||
return false;
|
||||
|
||||
if (!string_is_empty(runloop_st->name.remapfile))
|
||||
{
|
||||
input_remapping_deinit(false);
|
||||
input_remapping_set_defaults(false);
|
||||
}
|
||||
|
||||
input_remapping_set_defaults(false);
|
||||
runloop_st->name.remapfile = strdup(path);
|
||||
|
||||
for (i = 0; i < MAX_USERS; i++)
|
||||
|
||||
@@ -3602,24 +3602,15 @@ static int generic_action_ok_remap_file_operation(const char *path,
|
||||
{
|
||||
case ACTION_OK_REMAP_FILE_REMOVE_CORE:
|
||||
if (flags & RUNLOOP_FLAG_REMAPS_CORE_ACTIVE)
|
||||
{
|
||||
input_remapping_deinit(false);
|
||||
input_remapping_set_defaults(false);
|
||||
}
|
||||
break;
|
||||
case ACTION_OK_REMAP_FILE_REMOVE_GAME:
|
||||
if (flags & RUNLOOP_FLAG_REMAPS_GAME_ACTIVE)
|
||||
{
|
||||
input_remapping_deinit(false);
|
||||
input_remapping_set_defaults(false);
|
||||
}
|
||||
break;
|
||||
case ACTION_OK_REMAP_FILE_REMOVE_CONTENT_DIR:
|
||||
if (flags & RUNLOOP_FLAG_REMAPS_CONTENT_DIR_ACTIVE)
|
||||
{
|
||||
input_remapping_deinit(false);
|
||||
input_remapping_set_defaults(false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user