From 791940b043d500c096a56d57467b4b68ea31ce1f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 1 May 2005 12:53:41 +0000 Subject: Introduced a new function in every game which formats a game_state as text. This is used by front ends to implement copy-to-clipboard. Currently the function does nothing (and is disabled) in every game except Solo, but it's a start. [originally from svn r5724] --- net.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'net.c') diff --git a/net.c b/net.c index d41cebe..78df30d 100644 --- a/net.c +++ b/net.c @@ -699,6 +699,11 @@ static void free_game(game_state *state) sfree(state); } +static char *game_text_format(game_state *state) +{ + return NULL; +} + /* ---------------------------------------------------------------------- * Utility routine. */ @@ -1508,6 +1513,7 @@ const struct game thegame = { new_game, dup_game, free_game, + FALSE, game_text_format, new_ui, free_ui, make_move, -- cgit v1.1