Minor tweaks
This commit is contained in:
parent
be371ebf99
commit
03f55d8f9e
2 changed files with 25 additions and 20 deletions
|
@ -492,7 +492,7 @@ static int screenshotCounter = 0; // Screenshots counter
|
|||
#endif
|
||||
|
||||
#if defined(SUPPORT_GIF_RECORDING)
|
||||
static int gifFrameCounter = 0; // GIF frames counter
|
||||
static int gifFrameCounter = 0; // GIF frames counter
|
||||
static bool gifRecording = false; // GIF recording state
|
||||
static MsfGifState gifState = { 0 }; // MSGIF context state
|
||||
#endif
|
||||
|
@ -2709,6 +2709,11 @@ bool FileExists(const char *fileName)
|
|||
if (access(fileName, F_OK) != -1) result = true;
|
||||
#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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue