diff options
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -331,7 +331,7 @@ void midend_timer(midend *me, float tplus); struct preset_menu *midend_get_presets(midend *me, int *id_limit); int midend_which_preset(midend *me); bool midend_wants_statusbar(midend *me); -enum { CFG_SETTINGS, CFG_SEED, CFG_DESC, CFG_FRONTEND_SPECIFIC }; +enum { CFG_SETTINGS, CFG_SEED, CFG_DESC, CFG_PREFS, CFG_FRONTEND_SPECIFIC }; config_item *midend_get_config(midend *me, int which, char **wintitle); const char *midend_set_config(midend *me, int which, config_item *cfg); const char *midend_game_id(midend *me, const char *id); @@ -352,6 +352,11 @@ void midend_serialise(midend *me, const char *midend_deserialise(midend *me, bool (*read)(void *ctx, void *buf, int len), void *rctx); +const char *midend_load_prefs( + midend *me, bool (*read)(void *ctx, void *buf, int len), void *rctx); +void midend_save_prefs(midend *me, + void (*write)(void *ctx, const void *buf, int len), + void *wctx); const char *identify_game(char **name, bool (*read)(void *ctx, void *buf, int len), void *rctx); @@ -557,7 +562,7 @@ void SHA_Simple(const void *p, int len, unsigned char *output); document *document_new(int pw, int ph, float userscale); void document_free(document *doc); void document_add_puzzle(document *doc, const game *game, game_params *par, - game_state *st, game_state *st2); + game_ui *ui, game_state *st, game_state *st2); int document_npages(const document *doc); void document_begin(const document *doc, drawing *dr); void document_end(const document *doc, drawing *dr); |