comparison config.h @ 1931:374a5ae694e8 mame_interp

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sat, 18 Apr 2020 11:42:53 -0700
parents 93960907807a
children 193b804c9845
comparison
equal deleted inserted replaced
1843:13abdc98379e 1931:374a5ae694e8
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text.
5 */ 5 */
6 #ifndef CONFIG_H_ 6 #ifndef CONFIG_H_
7 #define CONFIG_H_ 7 #define CONFIG_H_
8 #include "tern.h" 8 #include "tern.h"
9 #include "system.h"
9 10
10 tern_node *parse_config_file(char *config_path); 11 tern_node *parse_config_file(char *config_path);
11 tern_node *parse_bundled_config(char *config_name); 12 tern_node *parse_bundled_config(char *config_name);
12 tern_node *load_overrideable_config(char *name, char *bundled_name); 13 tern_node *load_overrideable_config(char *name, char *bundled_name, uint8_t *used_config_dir);
13 tern_node *load_config(); 14 tern_node *load_config();
14 char *serialize_config(tern_node *config, uint32_t *size_out); 15 char *serialize_config(tern_node *config, uint32_t *size_out);
15 uint8_t serialize_config_file(tern_node *config, char *path); 16 uint8_t serialize_config_file(tern_node *config, char *path);
16 void persist_config_at(tern_node *config, char *fname); 17 void persist_config_at(tern_node *app_config, tern_node *to_save, char *fname);
17 void persist_config(tern_node *config); 18 void persist_config(tern_node *config);
18 char **get_extension_list(tern_node *config, uint32_t *num_exts_out); 19 char **get_extension_list(tern_node *config, uint32_t *num_exts_out);
19 uint32_t get_lowpass_cutoff(tern_node *config); 20 uint32_t get_lowpass_cutoff(tern_node *config);
21 tern_node *get_systems_config(void);
22 tern_node *get_model(tern_node *config, system_type stype);
20 23
21 #endif //CONFIG_H_ 24 #endif //CONFIG_H_
22 25