mirror of
https://github.com/raysan5/raylib.git
synced 2026-07-11 08:11:55 -04:00
Compare commits
2 Commits
94897c4eca
...
8713741782
| Author | SHA1 | Date | |
|---|---|---|---|
| 8713741782 | |||
| ac6526b731 |
@ -2237,10 +2237,10 @@ int FileCopy(const char *srcPath, const char *dstPath)
|
|||||||
unsigned char *srcFileData = LoadFileData(srcPath, &srcDataSize);
|
unsigned char *srcFileData = LoadFileData(srcPath, &srcDataSize);
|
||||||
|
|
||||||
// Create required paths if they do not exist
|
// Create required paths if they do not exist
|
||||||
if (!DirectoryExists(GetDirectoryPath(dstPath)))
|
if (DirectoryExists(GetDirectoryPath(dstPath))) result = 0; // Already exists
|
||||||
result = MakeDirectory(GetDirectoryPath(dstPath));
|
else result = MakeDirectory(GetDirectoryPath(dstPath));
|
||||||
|
|
||||||
if (result == 0) // Directory created successfully (or already exists)
|
if (result == 0) // Directory created successfully or already exists
|
||||||
{
|
{
|
||||||
if ((srcFileData != NULL) && (srcDataSize > 0))
|
if ((srcFileData != NULL) && (srcDataSize > 0))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user