Skip to content

Commit

Permalink
Logging config file writes in all places where it was not done so far.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb committed Mar 3, 2024
1 parent ac19523 commit 322c144
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -5082,6 +5082,7 @@ bool config_save_autoconf_profile(const
}
}

RARCH_LOG("[Autoconf]: Writing autoconf file for device \"%s\" to \"%s\".\n", device_name, autoconf_file);
ret = config_file_write(conf, autoconf_file, false);

end:
Expand Down
1 change: 1 addition & 0 deletions frontend/frontend_salamander.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ static void salamander_init(char *s, size_t len)
{
config_set_path(config, "libretro_path", s);
config_file_write(config, config_path, false);
RARCH_DBG("Salamander config file written to \"%s\".\n", config_path);
config_file_free(config);
}
}
Expand Down
4 changes: 4 additions & 0 deletions menu/cbs/menu_cbs_ok.c
Original file line number Diff line number Diff line change
Expand Up @@ -3683,12 +3683,16 @@ static int generic_action_ok_remap_file_operation(const char *path,
msg_hash_to_str(MSG_REMAP_FILE_SAVED_SUCCESSFULLY),
1, 100, true,
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
RARCH_LOG("[Remap]: File saved successfully: \"%s\".\n",remap_file_path);
}
else
{
runloop_msg_queue_push(
msg_hash_to_str(MSG_ERROR_SAVING_REMAP_FILE),
1, 100, true,
NULL, MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
RARCH_ERR("[Remap]: File save unsuccessful: \"%s\".\n",remap_file_path);
}
}
else
{
Expand Down
1 change: 1 addition & 0 deletions runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -4962,6 +4962,7 @@ bool core_options_create_override(bool game_specific)
if (!config_file_write(conf, options_path, true))
goto error;

RARCH_LOG("[Core]: Core options file created successfully: \"%s\".\n", options_path);
runloop_msg_queue_push(
msg_hash_to_str(MSG_CORE_OPTIONS_FILE_CREATED_SUCCESSFULLY),
1, 100, true,
Expand Down

0 comments on commit 322c144

Please sign in to comment.