Skip to content

Commit

Permalink
Buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jul 20, 2024
1 parent afc9cb5 commit 857d1e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion network/cloud_sync_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool cloud_sync_end(cloud_sync_complete_handler_t cb, void *user_data);

bool cloud_sync_read(const char *path, const char *file, cloud_sync_complete_handler_t cb, void *user_data);
bool cloud_sync_update(const char *path, RFILE *file, cloud_sync_complete_handler_t cb, void *user_data);
bool cloud_sync_delete(const char *path, cloud_sync_complete_handler_t cb, void *user_data);
bool cloud_sync_free(const char *path, cloud_sync_complete_handler_t cb, void *user_data);

RETRO_END_DECLS

Expand Down
6 changes: 3 additions & 3 deletions tasks/task_cloudsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,15 @@ static struct string_list *task_cloud_sync_directory_map(void)
char dir[PATH_MAX_LENGTH];
list = string_list_new();

if (settings->bools.cloud_sync_sync_configs)
if (settings->bools.cloud_sync_sync_configs)
{
string_list_append(list, "config", attr);
fill_pathname_application_special(dir,
sizeof(dir), APPLICATION_SPECIAL_DIRECTORY_CONFIG);
list->elems[list->size - 1].userdata = strdup(dir);
}

if (settings->bools.cloud_sync_sync_saves)
if (settings->bools.cloud_sync_sync_saves)
{
string_list_append(list, "saves", attr);
list->elems[list->size - 1].userdata = strdup(dir_get_ptr(RARCH_DIR_SAVEFILE));
Expand Down Expand Up @@ -778,7 +778,7 @@ static void task_cloud_sync_delete_server_file(task_cloud_sync_state_t *sync_sta
RARCH_LOG(CSPFX "deleting %s\n", key);

sync_state->waiting = true;
if (!cloud_sync_delete(key, task_cloud_sync_delete_cb, sync_state))
if (!cloud_sync_free(key, task_cloud_sync_delete_cb, sync_state))
{
/* if the delete fails, resurrect the hash from the last sync */
size_t idx;
Expand Down

0 comments on commit 857d1e4

Please sign in to comment.