diff options
author | Nebuleon Fumika | 2012-12-19 18:49:13 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-19 18:49:13 -0500 |
commit | 100c3bd9e9f9e7fc809434706ddcc2fde96143af (patch) | |
tree | b61f10713cc0616c20e7fc7851bbd78a1c68fdd9 /source/nds/gui.c | |
parent | 973cd8d5e37dba2e15de3d3fd1965d2fbfc2cdab (diff) | |
download | snesemu-100c3bd9e9f9e7fc809434706ddcc2fde96143af.tar.gz snesemu-100c3bd9e9f9e7fc809434706ddcc2fde96143af.tar.bz2 snesemu-100c3bd9e9f9e7fc809434706ddcc2fde96143af.zip |
Make it easier to add new translations to the menu.
* source/nds/gui.c: Calculate the number of options based on the array size of language_otions.
Diffstat (limited to 'source/nds/gui.c')
-rw-r--r-- | source/nds/gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nds/gui.c b/source/nds/gui.c index b1b9ce5..3201665 100644 --- a/source/nds/gui.c +++ b/source/nds/gui.c @@ -3125,7 +3125,7 @@ u32 menu(u16 *screen) /* 01 */ NUMERIC_SELECTION_OPTION(NULL, &msg[MSG_SUB_MENU_42], &clock_speed_number, 6, NULL, 1), /* 02 */ STRING_SELECTION_OPTION(language_set, NULL, &msg[MSG_SUB_MENU_41], language_options, - &emu_config.language, 3 /* number of possibilities */, NULL, ACTION_TYPE, 2), + &emu_config.language, sizeof(language_options) / sizeof(language_options[0]) /* number of possible languages */, NULL, ACTION_TYPE, 2), /* 03 */ STRING_SELECTION_OPTION(NULL, show_card_space, &msg[MSG_SUB_MENU_43], NULL, &desert, 2, NULL, PASSIVE_TYPE | HIDEN_TYPE, 3), |