chiark / gitweb /
Introduced a new function in every game which formats a game_state
[sgt-puzzles.git] / twiddle.c
index 1992c01975f999dcb25e7db31b50f3b8efee5510..4bfd30cd78549d2955646cd76b016611252a45d1 100644 (file)
--- a/twiddle.c
+++ b/twiddle.c
@@ -452,6 +452,11 @@ static void free_game(game_state *state)
     sfree(state);
 }
 
+static char *game_text_format(game_state *state)
+{
+    return NULL;
+}
+
 static game_ui *new_ui(game_state *state)
 {
     return NULL;
@@ -928,21 +933,21 @@ static int game_wants_statusbar(void)
 #endif
 
 const struct game thegame = {
-    "Twiddle", "games.twiddle", TRUE,
+    "Twiddle", "games.twiddle",
     default_params,
     game_fetch_preset,
     decode_params,
     encode_params,
     free_params,
     dup_params,
-    game_configure,
-    custom_params,
+    TRUE, game_configure, custom_params,
     validate_params,
     new_game_seed,
     validate_seed,
     new_game,
     dup_game,
     free_game,
+    FALSE, game_text_format,
     new_ui,
     free_ui,
     make_move,