diff options
author | neonloop | 2021-08-12 18:52:54 +0000 |
---|---|---|
committer | neonloop | 2021-08-12 18:52:54 +0000 |
commit | 95c2f03dca179259a11025b3e773ef705ae4f894 (patch) | |
tree | 4a0e06e11280f31333172c041056ca569fb79d71 /menu.c | |
parent | 147ce424f9d908cab634942e448200805a5e5430 (diff) | |
download | picoarch-95c2f03dca179259a11025b3e773ef705ae4f894.tar.gz picoarch-95c2f03dca179259a11025b3e773ef705ae4f894.tar.bz2 picoarch-95c2f03dca179259a11025b3e773ef705ae4f894.zip |
Allows core-hidden options
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; |