From c2b36af60f1b2823cdeb6c8ae73a4957026d46ce Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Fri, 12 Oct 2018 13:53:36 +0100 Subject: 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. --- src/raylib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/raylib.h') diff --git a/src/raylib.h b/src/raylib.h index 9d870255..1765b40b 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -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) -- cgit v1.2.3