This commit is contained in:
twinaphex 2016-06-05 03:04:01 +02:00
parent 96d9a851b1
commit 51c875fdee

View File

@ -217,14 +217,12 @@ bool content_rename_state(const char *origin, const char *dest)
{
int ret = 0;
if (path_file_exists(dest))
unlink(dest);
ret = rename (origin, dest);
unlink(dest);
ret = rename (origin, dest);
if (!ret)
return true;
else
{
RARCH_LOG ("Error %d renaming file %s", ret, origin);
return false;
}
return true;
RARCH_LOG ("Error %d renaming file %s", ret, origin);
return false;
}