Mercurial > repos > blastem
diff config.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 | 637fbc3b5063 |
children | 650178d81d33 |
line wrap: on
line diff
--- a/config.c Sun Mar 25 10:49:19 2018 -0700 +++ b/config.c Sun Mar 25 12:00:29 2018 -0700 @@ -250,6 +250,7 @@ if (!confdir) { fatal_error("Failed to locate config file directory\n"); } + ensure_dir_exists(confdir); char *confpath = path_append(confdir, "blastem.cfg"); if (!serialize_config_file(config, confpath)) { fatal_error("Failed to write config to %s\n", confpath);