forked from len0rd/rockbox
unify pointers to value for configfile, and add TYPE_BOOL type, used by
pictureflow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19786 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2fecb713ea
commit
0b41f0599f
16 changed files with 120 additions and 91 deletions
|
@ -63,8 +63,8 @@ static int nb_sides_values[] = { 3, 4, 6, 8, 10, 12, 20, 100 };
|
|||
static char *sides_conf[] = {"3", "4", "6", "8", "10", "12", "20", "100" };
|
||||
static struct configdata config[] =
|
||||
{
|
||||
{TYPE_INT, 0, MAX_DICES, &dice.nb_dices, "dice count", NULL, NULL},
|
||||
{TYPE_ENUM, 0, 8, &sides_index, "side count", sides_conf, NULL}
|
||||
{TYPE_INT, 0, MAX_DICES, { .int_p = &dice.nb_dices}, "dice count", NULL},
|
||||
{TYPE_ENUM, 0, 8, { .int_p = &sides_index }, "side count", sides_conf}
|
||||
};
|
||||
|
||||
void dice_init(struct dices* dice);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue