X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fconfig.h;h=4290768f42ac8506314f96fa053f2b94e6667c55;hb=4a99fe51561ca331df54512eb25c502d0fcd2b55;hp=9601b893bc1e17c709f6cece7c7978e21e0130f5;hpb=2bb81ea2565c3627c954b5c37326db89b0048472;p=flatwaifu.git diff --git a/src/config.h b/src/config.h index 9601b89..4290768 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, 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 */