X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fconfig.h;h=4290768f42ac8506314f96fa053f2b94e6667c55;hb=2b481ae25adcf3bebf37be182eafc8bfa0acb4c1;hp=72a5355349bc33ce238b6b6e4ce82704882bf778;hpb=e5a6f7533ac0d87aca1084509533211af42b92e0;p=flatwaifu.git diff --git a/src/config.h b/src/config.h index 72a5355..4290768 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, int n, 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 */