Added GetLastWriteTime to allow for file reloading

- Added a function to get the last write time of a file. I used this so I can reload files or resources if the time since they were last loaded changes.
This commit is contained in:
ChrisDill 2018-10-12 13:53:36 +01:00
parent 5945805b15
commit c2b36af60f
2 changed files with 14 additions and 0 deletions

View file

@ -880,6 +880,7 @@ RLAPI bool ChangeDirectory(const char *dir); // Change work
RLAPI bool IsFileDropped(void); // Check if a file has been dropped into window
RLAPI char **GetDroppedFiles(int *count); // Get dropped files names (memory should be freed)
RLAPI void ClearDroppedFiles(void); // Clear dropped files paths buffer (free memory)
RLAPI long GetLastWriteTime(const char *fileName); // Get last write time of a file
// Persistent storage management
RLAPI void StorageSaveValue(int position, int value); // Save integer value to storage file (to defined position)