X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/ac9f41c4c8ccbf9364a5d351e4cb134812a9926b..f02e50a0b6ad50112e94ed35994bc34e0a1e9c0b:/pegs.c diff --git a/pegs.c b/pegs.c index 560bf0a..7ac0ac8 100644 --- a/pegs.c +++ b/pegs.c @@ -711,6 +711,11 @@ static char *solve_game(game_state *state, game_state *currstate, return NULL; } +static int game_can_format_as_text_now(game_params *params) +{ + return TRUE; +} + static char *game_text_format(game_state *state) { int w = state->w, h = state->h; @@ -1186,7 +1191,7 @@ static void game_print(drawing *dr, game_state *state, int tilesize) #endif const struct game thegame = { - "Pegs", "games.pegs", + "Pegs", "games.pegs", "pegs", default_params, game_fetch_preset, decode_params, @@ -1201,7 +1206,7 @@ const struct game thegame = { dup_game, free_game, FALSE, solve_game, - TRUE, game_text_format, + TRUE, game_can_format_as_text_now, game_text_format, new_ui, free_ui, encode_ui,