diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-04-24 19:08:49 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-04-24 19:08:49 -0700 |
commit | 3905002957a7670fd6ad0762c1a961ae5b7e9810 (patch) | |
tree | bd776faa7b78c99d3eae4736ed326eaaf4e2ef1e /config.h | |
parent | f7b6f7fbd9f12ad6ce58496ec87ed7fc67a1dbfc (diff) |
Allow config file to be saved with executable for "portable" setups
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,11 +9,11 @@ tern_node *parse_config_file(char *config_path); tern_node *parse_bundled_config(char *config_name); -tern_node *load_overrideable_config(char *name, char *bundled_name); +tern_node *load_overrideable_config(char *name, char *bundled_name, uint8_t *used_config_dir); tern_node *load_config(); char *serialize_config(tern_node *config, uint32_t *size_out); uint8_t serialize_config_file(tern_node *config, char *path); -void persist_config_at(tern_node *config, char *fname); +void persist_config_at(tern_node *app_config, tern_node *to_save, char *fname); void persist_config(tern_node *config); char **get_extension_list(tern_node *config, uint32_t *num_exts_out); uint32_t get_lowpass_cutoff(tern_node *config); |