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]
This commit is contained in:
Simon Tatham
2005-05-01 12:53:41 +00:00
parent e72931bfe2
commit 791940b043
14 changed files with 279 additions and 34 deletions

View File

@ -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;
@ -942,6 +947,7 @@ const struct game thegame = {
new_game,
dup_game,
free_game,
FALSE, game_text_format,
new_ui,
free_ui,
make_move,