Change function signature of file_path_rename

This commit is contained in:
twinaphex 2017-11-06 19:17:42 +01:00
parent e5d4e2ac0a
commit 13e0bd1932
2 changed files with 5 additions and 5 deletions

View File

@ -963,7 +963,7 @@ bool path_file_remove(const char *path)
return false; return false;
} }
int path_file_rename(const char *old_path, const char *new_path) bool path_file_rename(const char *old_path, const char *new_path)
{ {
char *old_path_local = NULL; char *old_path_local = NULL;
char *new_path_local = NULL; char *new_path_local = NULL;
@ -1017,10 +1017,10 @@ int path_file_rename(const char *old_path, const char *new_path)
if (new_path_wide) if (new_path_wide)
free(new_path_wide); free(new_path_wide);
return -1;
#endif #endif
#else #else
return rename(old_path, new_path); if (rename(old_path, new_path) == 0)
return true;
#endif #endif
return false;
} }

View File

@ -468,7 +468,7 @@ int32_t path_get_size(const char *path);
bool path_file_remove(const char *path); bool path_file_remove(const char *path);
int path_file_rename(const char *old_path, const char *new_path); bool path_file_rename(const char *old_path, const char *new_path);
RETRO_END_DECLS RETRO_END_DECLS