Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1539:5b1157eb189d | 1540:e94cff9cb625 |
---|---|
69 //Performs a case-insensitive sort by file name on a dir list | 69 //Performs a case-insensitive sort by file name on a dir list |
70 void sort_dir_list(dir_entry *list, size_t num_entries); | 70 void sort_dir_list(dir_entry *list, size_t num_entries); |
71 //Gets the modification time of a file | 71 //Gets the modification time of a file |
72 time_t get_modification_time(char *path); | 72 time_t get_modification_time(char *path); |
73 //Recusrively creates a directory if it does not exist | 73 //Recusrively creates a directory if it does not exist |
74 int ensure_dir_exists(char *path); | 74 int ensure_dir_exists(const char *path); |
75 //Returns the contents of a symlink in a newly allocated string | 75 //Returns the contents of a symlink in a newly allocated string |
76 char * readlink_alloc(char * path); | 76 char * readlink_alloc(char * path); |
77 //Prints an error message to stderr and to a message box if not in headless mode and then exits | 77 //Prints an error message to stderr and to a message box if not in headless mode and then exits |
78 void fatal_error(char *format, ...); | 78 void fatal_error(char *format, ...); |
79 //Prints an information message to stdout and to a message box if not in headless mode and not attached to a console | 79 //Prints an information message to stdout and to a message box if not in headless mode and not attached to a console |