mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-12 06:18:14 +00:00
Minor tweaks
This commit is contained in:
@@ -2709,6 +2709,11 @@ bool FileExists(const char *fileName)
|
|||||||
if (access(fileName, F_OK) != -1) result = true;
|
if (access(fileName, F_OK) != -1) result = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// NOTE: Alternatively, stat() can be used instead of access()
|
||||||
|
//#include <sys/stat.h>
|
||||||
|
//struct stat statbuf;
|
||||||
|
//if (stat(filename, &statbuf) == 0) result = true;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user