aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorneonloop2021-08-12 18:52:54 +0000
committerneonloop2021-08-12 18:52:54 +0000
commit95c2f03dca179259a11025b3e773ef705ae4f894 (patch)
tree4a0e06e11280f31333172c041056ca569fb79d71 /menu.c
parent147ce424f9d908cab634942e448200805a5e5430 (diff)
downloadpicoarch-95c2f03dca179259a11025b3e773ef705ae4f894.tar.gz
picoarch-95c2f03dca179259a11025b3e773ef705ae4f894.tar.bz2
picoarch-95c2f03dca179259a11025b3e773ef705ae4f894.zip
Allows core-hidden options
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index d5e606a..ea331cf 100644
--- a/menu.c
+++ b/menu.c
@@ -201,14 +201,13 @@ static int menu_loop_core_options_page(int offset, int keys) {
}
for (i = offset, menu_idx = 0; i < core_options.len && menu_idx < CORE_OPTIONS_PER_PAGE; i++) {
- struct core_option_entry *entry;
+ struct core_option_entry *entry = &core_options.entries[i];
menu_entry *option;
- const char *key = options_get_key(i);
+ const char *key = entry->key;
- if (options_is_blocked(key))
+ if (entry->blocked || !entry->visible)
continue;
- entry = options_get_entry(key);
option = &e_menu_core_options[menu_idx];
option->name = entry->desc;