mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
Cleanup
This commit is contained in:
parent
96d9a851b1
commit
51c875fdee
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user