mirror of
https://github.com/raysan5/raylib.git
synced 2026-03-29 20:01:59 +00:00
Update rcore.c
This commit is contained in:
@@ -2278,10 +2278,8 @@ int FileMove(const char *srcPath, const char *dstPath)
|
||||
|
||||
if (FileExists(srcPath))
|
||||
{
|
||||
if (FileCopy(srcPath, dstPath) == 0)
|
||||
result = FileRemove(srcPath);
|
||||
else
|
||||
TRACELOG(LOG_WARNING, "FILEIO: [%s] Failed to copy file to [%s]", srcPath, dstPath);
|
||||
if (FileCopy(srcPath, dstPath) == 0) 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