summaryrefslogtreecommitdiff
path: root/apps/plugins/dice.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-02-03 20:12:50 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-07-20 08:48:35 +0200
commit55eb1c54ebe33faa8b1eb8c527d5644961ca78dc (patch)
tree81b5a4f89cfc867bc73901c7cccffc89baf3c3ff /apps/plugins/dice.c
parent9c17734394177791d1101e31aed7537c81e610b6 (diff)
downloadrockbox-55eb1c54ebe33faa8b1eb8c527d5644961ca78dc.tar.gz
rockbox-55eb1c54ebe33faa8b1eb8c527d5644961ca78dc.zip
FS#7704 - Talk support for plugins
Original patch by Mario Lang Heavily updated by Igor Poretsky Further updated by myself This patch breaks binary API compatibility by placing the new functions where they make the most logical sense. IMO this is the better approach to take given the scope of the changes needed for talk support. Since binary API is changing, the patch also moves some other functions around to more logical locations. As well as voice support in plugins, this patch voice-enables several simple plugins. There will be follow-up patches for many plugins that build on this one. Change-Id: I18070c06e77e8a3c016c2eb6b6c5dbe6633b9b54
Diffstat (limited to 'apps/plugins/dice.c')
-rw-r--r--apps/plugins/dice.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/dice.c b/apps/plugins/dice.c
index 098dd27c8b..622c58d71d 100644
--- a/apps/plugins/dice.c
+++ b/apps/plugins/dice.c
@@ -51,14 +51,14 @@ static struct dices dice;
51static int sides_index; 51static int sides_index;
52 52
53static struct opt_items nb_sides_option[8] = { 53static struct opt_items nb_sides_option[8] = {
54 { "3", -1 }, 54 { "3", TALK_ID(3, UNIT_INT) },
55 { "4", -1 }, 55 { "4", TALK_ID(4, UNIT_INT) },
56 { "6", -1 }, 56 { "6", TALK_ID(6, UNIT_INT) },
57 { "8", -1 }, 57 { "8", TALK_ID(8, UNIT_INT) },
58 { "10", -1 }, 58 { "10", TALK_ID(10, UNIT_INT) },
59 { "12", -1 }, 59 { "12", TALK_ID(12, UNIT_INT) },
60 { "20", -1 }, 60 { "20", TALK_ID(20, UNIT_INT) },
61 { "100", -1 } 61 { "100", TALK_ID(100, UNIT_INT) }
62}; 62};
63static int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 }; 63static int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 };
64static char *sides_conf[] = {"3", "4", "6", "8", "10", "12", "20", "100" }; 64static char *sides_conf[] = {"3", "4", "6", "8", "10", "12", "20", "100" };