mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-26 16:47:25 -04:00
Fix FileMove from delete file if FileCopy did not work (#5806)
This commit is contained in:
@ -2283,7 +2283,7 @@ int FileMove(const char *srcPath, const char *dstPath)
|
||||
|
||||
if (FileExists(srcPath))
|
||||
{
|
||||
if (FileCopy(srcPath, dstPath) == 0) result = FileRemove(srcPath);
|
||||
if (FileCopy(srcPath, dstPath)) result = FileRemove(srcPath);
|
||||
else TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to copy file to [%s]", srcPath, dstPath);
|
||||
}
|
||||
else TRACELOG(LOG_WARNING, "FILEIO: [%s] Source file does not exist", srcPath);
|
||||
|
||||
Reference in New Issue
Block a user