diff options
| author | Simon Tatham <anakin@pobox.com> | 2013-04-05 15:49:20 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2013-04-05 15:49:20 +0000 |
| commit | 8f87f2ce894f6ba017581abb89e2e0927067bed7 (patch) | |
| tree | f5a2c1edaed00eeaec5d3093c1faf27365a177ac /puzzles.h | |
| parent | 841c9318f3bc8a368224af4931f2f007ff288b0a (diff) | |
| download | puzzles-8f87f2ce894f6ba017581abb89e2e0927067bed7.zip puzzles-8f87f2ce894f6ba017581abb89e2e0927067bed7.tar.gz puzzles-8f87f2ce894f6ba017581abb89e2e0927067bed7.tar.bz2 puzzles-8f87f2ce894f6ba017581abb89e2e0927067bed7.tar.xz | |
I've just realised that the JS puzzles' permalinks were not updating
when the user pressed 'n' for a new game, because all the front end
knows is that it passed a keystroke to the puzzle, and it has no way
of hearing back that a particular keypress resulted in a game id
change.
To fix this, I've renamed midend_request_desc_changes to
midend_request_id_changes and expanded its remit to cover _any_ change
to the game ids. So now that callback in the Emscripten front end is
the only place from which update_permalinks is called (apart from
initialising them at setup time), and that should handle everything.
[originally from svn r9805]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -268,8 +268,7 @@ char *midend_deserialise(midend *me, void *rctx); char *identify_game(char **name, int (*read)(void *ctx, void *buf, int len), void *rctx); -void midend_request_desc_changes(midend *me, void (*notify)(void *), - void *ctx); +void midend_request_id_changes(midend *me, void (*notify)(void *), void *ctx); /* Printing functions supplied by the mid-end */ char *midend_print_puzzle(midend *me, document *doc, int with_soln); int midend_tilesize(midend *me); |