chiark / gitweb /
New infrastructure feature. Games are now permitted to be
[sgt-puzzles.git] / blackbox.c
index 458c0b805000184d45e97a7f5b4c44ebcc505259..a8c6d5a2cb5c0c303452585a77aaec855e09f782 100644 (file)
@@ -463,6 +463,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)
 {
     return NULL;
@@ -1413,7 +1418,7 @@ const struct game thegame = {
     dup_game,
     free_game,
     TRUE, solve_game,
-    FALSE, game_text_format,
+    FALSE, game_can_format_as_text_now, game_text_format,
     new_ui,
     free_ui,
     encode_ui,