Mercurial > repos > blastem
diff util.h @ 1540:e94cff9cb625 nuklear_ui
Make sure config directory exists before trying to save config file
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 25 Mar 2018 12:00:29 -0700 |
parents | 4f6e8acd7b6a |
children | 5efeca06d942 |
line wrap: on
line diff
--- a/util.h Sun Mar 25 10:49:19 2018 -0700 +++ b/util.h Sun Mar 25 12:00:29 2018 -0700 @@ -71,7 +71,7 @@ //Gets the modification time of a file time_t get_modification_time(char *path); //Recusrively creates a directory if it does not exist -int ensure_dir_exists(char *path); +int ensure_dir_exists(const char *path); //Returns the contents of a symlink in a newly allocated string char * readlink_alloc(char * path); //Prints an error message to stderr and to a message box if not in headless mode and then exits