From 95c2f03dca179259a11025b3e773ef705ae4f894 Mon Sep 17 00:00:00 2001 From: neonloop Date: Thu, 12 Aug 2021 18:52:54 +0000 Subject: Allows core-hidden options --- menu.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'menu.c') 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; -- cgit v1.2.3