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 /config.c | |
parent | 560c8198c006c1d2eddd61329c2657160c144835 (diff) |
Make sure config directory exists before trying to save config file
--HG--
branch : nuklear_ui
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -250,6 +250,7 @@ void persist_config(tern_node *config) 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); |