summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/filling.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2018-04-17 18:18:40 -0400
committerFranklin Wei <git@fwei.tk>2018-04-17 18:20:12 -0400
commit6dc9d1d7309613fdc0518c03b2cdf3253d4c52fd (patch)
treef6c9abf4a05f640134aa3d248a9498a06f596712 /apps/plugins/puzzles/src/filling.c
parent7a12e796a62b916dae5de1b2986e8cb11ac5be4c (diff)
downloadrockbox-6dc9d1d7309613fdc0518c03b2cdf3253d4c52fd.zip
rockbox-6dc9d1d7309613fdc0518c03b2cdf3253d4c52fd.tar.gz
rockbox-6dc9d1d7309613fdc0518c03b2cdf3253d4c52fd.tar.bz2
rockbox-6dc9d1d7309613fdc0518c03b2cdf3253d4c52fd.tar.xz
puzzles: enable all the remaining games
They all work now :). I merged in part of Chris Boyle's Android port of Puzzles to give the front end a way to know what keys the back end needs. This also re-syncs to the latest upstream sources. Change-Id: Ie0409bbb32f617ae5abf4f81be3b45d1552db9bb
Diffstat (limited to 'apps/plugins/puzzles/src/filling.c')
-rw-r--r--apps/plugins/puzzles/src/filling.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/filling.c b/apps/plugins/puzzles/src/filling.c
index 231de4c..c331dac 100644
--- a/apps/plugins/puzzles/src/filling.c
+++ b/apps/plugins/puzzles/src/filling.c
@@ -1287,6 +1287,11 @@ static const char *validate_desc(const game_params *params, const char *desc)
return (area < sz) ? "Not enough data to fill grid" : NULL;
}
+static char *game_request_keys(const game_params *params)
+{
+ return dupstr("1234567890\b");
+}
+
static game_state *new_game(midend *me, const game_params *params,
const char *desc)
{
@@ -2125,6 +2130,7 @@ const struct game thegame = {
free_ui,
encode_ui,
decode_ui,
+ game_request_keys,
game_changed_state,
interpret_move,
execute_move,