Update rcore.c
This commit is contained in:
parent
729327a078
commit
5ca45bce37
|
|
@ -511,7 +511,6 @@ const char *TextFormat(const char *text, ...); // Formatting of text with variab
|
||||||
#define PLATFORM_DESKTOP_GLFW
|
#define PLATFORM_DESKTOP_GLFW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Include platform-specific submodules
|
// Include platform-specific submodules
|
||||||
#if defined(PLATFORM_DESKTOP_GLFW)
|
#if defined(PLATFORM_DESKTOP_GLFW)
|
||||||
#include "platforms/rcore_desktop_glfw.c"
|
#include "platforms/rcore_desktop_glfw.c"
|
||||||
|
|
@ -2319,7 +2318,7 @@ bool FileExists(const char *fileName)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
if (ACCESS(fileName) != -1) result = true;
|
if ((fileName != NULL) && (ACCESS(fileName) != -1)) result = true;
|
||||||
|
|
||||||
// NOTE: Alternatively, stat() can be used instead of access()
|
// NOTE: Alternatively, stat() can be used instead of access()
|
||||||
//#include <sys/stat.h>
|
//#include <sys/stat.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user