| 39 |
#define MENU_SET_RESERVED_LENGTH (sizeof(int16_t) * 4) |
#define MENU_SET_RESERVED_LENGTH (sizeof(int16_t) * 4) |
| 40 |
|
|
| 41 |
MENU_SET bbs_menu; |
MENU_SET bbs_menu; |
| 42 |
|
MENU_SET top10_menu; |
| 43 |
|
|
| 44 |
int load_menu(MENU_SET *p_menu_set, const char *conf_file) |
int load_menu(MENU_SET *p_menu_set, const char *conf_file) |
| 45 |
{ |
{ |
| 1141 |
switch (key) |
switch (key) |
| 1142 |
{ |
{ |
| 1143 |
case CR: |
case CR: |
|
igetch_reset(); |
|
| 1144 |
case KEY_RIGHT: |
case KEY_RIGHT: |
| 1145 |
if (p_menu_item->submenu) |
if (p_menu_item->submenu) |
| 1146 |
{ |
{ |
| 1167 |
if (p_menu_set->choose_step > 0) |
if (p_menu_set->choose_step > 0) |
| 1168 |
{ |
{ |
| 1169 |
p_menu_set->choose_step--; |
p_menu_set->choose_step--; |
| 1170 |
if (p_menu_set->choose_step == 0) |
return REDRAW; |
|
{ |
|
|
return REDRAW; |
|
|
} |
|
|
if (display_menu(p_menu_set) != 0) |
|
|
{ |
|
|
return menu_control(p_menu_set, KEY_LEFT); |
|
|
} |
|
| 1171 |
} |
} |
| 1172 |
else |
else |
| 1173 |
{ |
{ |