X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fconfig.h;h=c666722c9c2d61029394593981bb28faacf311ff;hb=49c7dbd3920be7bb57a9ec39779d9695fbe8f0c5;hp=9601b893bc1e17c709f6cece7c7978e21e0130f5;hpb=2bb81ea2565c3627c954b5c37326db89b0048472;p=flatwaifu.git diff --git a/src/config.h b/src/config.h index 9601b89..c666722 100644 --- a/src/config.h +++ b/src/config.h @@ -23,14 +23,16 @@ #define CONFIG_H_INCLUDED #include "glob.h" +#include "system.h" -extern byte cheat; -extern byte shot_vga; -extern char cd_path[128]; -extern char cfg_file[128]; +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, int n, const cfg_t **cfg, const char *msg); #endif /* CONFIG_H_INCLUDED */