diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-03-25 12:00:29 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-03-25 12:00:29 -0700 |
commit | b6feecb6c12566e9ea826cb67701008f9e423eea (patch) | |
tree | a06db423e81d53aee66cfa0b0ca366bd57d71dc8 /util.c | |
parent | 560c8198c006c1d2eddd61329c2657160c144835 (diff) |
Make sure config directory exists before trying to save config file
--HG--
branch : nuklear_ui
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -549,7 +549,7 @@ time_t get_modification_time(char *path) return (time_t)wintime; } -int ensure_dir_exists(char *path) +int ensure_dir_exists(const char *path) { if (CreateDirectory(path, NULL)) { return 1; @@ -703,7 +703,7 @@ time_t get_modification_time(char *path) #endif } -int ensure_dir_exists(char *path) +int ensure_dir_exists(const char *path) { struct stat st; if (stat(path, &st)) { |