chiark / gitweb /
New infrastructure feature. Games are now permitted to be
[sgt-puzzles.git] / sixteen.c
index 75751b972dcf97f231f5789172befcd62664058b..ac3191c899d7baff1eaa9f8ead707d283bba4273 100644 (file)
--- a/sixteen.c
+++ b/sixteen.c
@@ -509,6 +509,11 @@ static char *solve_game(game_state *state, game_state *currstate,
     return dupstr("S");
 }
 
+static int game_can_format_as_text_now(game_params *params)
+{
+    return TRUE;
+}
+
 static char *game_text_format(game_state *state)
 {
     char *ret, *p, buf[80];
@@ -1014,7 +1019,7 @@ static void game_print(drawing *dr, game_state *state, int tilesize)
 #endif
 
 const struct game thegame = {
-    "Sixteen", "games.sixteen",
+    "Sixteen", "games.sixteen", "sixteen",
     default_params,
     game_fetch_preset,
     decode_params,
@@ -1029,7 +1034,7 @@ const struct game thegame = {
     dup_game,
     free_game,
     TRUE, solve_game,
-    TRUE, game_text_format,
+    TRUE, game_can_format_as_text_now, game_text_format,
     new_ui,
     free_ui,
     encode_ui,