mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 12:40:23 +00:00
Change function signature of file_path_rename
This commit is contained in:
parent
e5d4e2ac0a
commit
13e0bd1932
@ -963,7 +963,7 @@ bool path_file_remove(const char *path)
|
||||
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 *new_path_local = NULL;
|
||||
@ -1017,10 +1017,10 @@ int path_file_rename(const char *old_path, const char *new_path)
|
||||
|
||||
if (new_path_wide)
|
||||
free(new_path_wide);
|
||||
|
||||
return -1;
|
||||
#endif
|
||||
#else
|
||||
return rename(old_path, new_path);
|
||||
if (rename(old_path, new_path) == 0)
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -468,7 +468,7 @@ int32_t path_get_size(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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user