Mercurial > repos > blastem
diff util.c @ 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.c Sun Mar 25 10:49:19 2018 -0700 +++ b/util.c Sun Mar 25 12:00:29 2018 -0700 @@ -549,7 +549,7 @@ 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 @@ #endif } -int ensure_dir_exists(char *path) +int ensure_dir_exists(const char *path) { struct stat st; if (stat(path, &st)) {