mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Renamed new PR function
RENAME: GetLastWriteTime() to GetFileModTime()
This commit is contained in:
11
src/core.c
11
src/core.c
@ -1682,15 +1682,18 @@ void ClearDroppedFiles(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
// Get the last write time of a file
|
||||
long GetLastWriteTime(const char *fileName)
|
||||
// Get file modification time (last write time)
|
||||
RLAPI long GetFileModTime(const char *fileName)
|
||||
{
|
||||
struct stat result = {0};
|
||||
struct stat result = { 0 };
|
||||
|
||||
if (stat(fileName, &result) == 0)
|
||||
{
|
||||
time_t mod = result.st_mtime;
|
||||
return mod;
|
||||
|
||||
return (long)mod;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user