X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fconfig.h;h=29d17d71497f1e93ed3f7f9d71732c7daed4a732;hp=72a5355349bc33ce238b6b6e4ce82704882bf778;hb=9e7ef91e1f6a1eb4c65ba52535d92eac3922f20e;hpb=abdc9afc1453ccca8e3c7cb6ec0ca455cf79d230 diff --git a/src/config.h b/src/config.h index 72a5355..29d17d7 100644 --- a/src/config.h +++ b/src/config.h @@ -23,12 +23,16 @@ #define CONFIG_H_INCLUDED #include "glob.h" +#include "system.h" -extern byte cheat; -extern byte shot_vga; +const cfg_t *CFG_find_entry (const char *key, const cfg_t *cfg); +int CFG_update_key (const char *key, const char *value, const cfg_t *cfg); -void CFG_args (int argc, char **argv); -void CFG_load (void); -void CFG_save (void); +int CFG_open_iterator (const char *name); +int CFG_scan_iterator (char *key, int keylen, char *value, int valuelen); +void CFG_close_iterator (void); + +int CFG_read_config (const char *name, const cfg_t *cfg); +int CFG_update_config (const char *old, const char *new, const cfg_t *cfg, const char *msg); #endif /* CONFIG_H_INCLUDED */