Experimental #saveoptions command
Add a #saveoptions extended command, to allow saving configuration settings from within the game. This is still highly experimental, and gives plenty of warnings before asking to overwrite the file. Lack of option saving is one of the biggest complaints new players have, so this should help with it. More experienced players with highly customized config file should not use this feature, as it completely rewrites the file, removing all comments and non-config lines.
This commit is contained in:
@@ -203,6 +203,7 @@ extern boolean parse_status_hl1(char *op, boolean);
|
||||
extern void status_notify_windowport(boolean);
|
||||
extern void clear_status_hilites(void);
|
||||
extern int count_status_hilites(void);
|
||||
extern void all_options_statushilites(strbuf_t *);
|
||||
extern boolean status_hilite_menu(void);
|
||||
#endif /* STATUS_HILITES */
|
||||
|
||||
@@ -878,6 +879,7 @@ extern void nh_compress(const char *);
|
||||
extern void nh_uncompress(const char *);
|
||||
extern boolean lock_file(const char *, int, int);
|
||||
extern void unlock_file(const char *);
|
||||
extern int do_write_config_file(void);
|
||||
extern boolean parse_config_line(char *);
|
||||
#ifdef USER_SOUNDS
|
||||
extern boolean can_read_file(const char *);
|
||||
@@ -1955,11 +1957,12 @@ extern void initoptions(void);
|
||||
extern void initoptions_init(void);
|
||||
extern void initoptions_finish(void);
|
||||
extern boolean parseoptions(char *, boolean, boolean);
|
||||
extern char *get_option_value(const char *);
|
||||
extern char *get_option_value(const char *, boolean);
|
||||
extern int doset_simple(void);
|
||||
extern int doset(void);
|
||||
extern int dotogglepickup(void);
|
||||
extern void option_help(void);
|
||||
extern void all_options_strbuf(strbuf_t *);
|
||||
extern void next_opt(winid, const char *);
|
||||
extern int fruitadd(char *, struct fruit *);
|
||||
extern int choose_classes_menu(const char *, int, boolean, char *, char *);
|
||||
@@ -2663,6 +2666,8 @@ extern int do_symset(boolean);
|
||||
extern int load_symset(const char *, int);
|
||||
extern void free_symsets(void);
|
||||
extern const struct symparse *match_sym(char *);
|
||||
extern void savedsym_free(void);
|
||||
extern void savedsym_strbuf(strbuf_t *);
|
||||
extern boolean parsesymbols(char *, int);
|
||||
#ifdef ENHANCED_SYMBOLS
|
||||
extern struct customization_detail *find_matching_symset_customization(
|
||||
|
||||
Reference in New Issue
Block a user