diff --git a/runtime_file.c b/runtime_file.c index 2b4c794c27..94ddd01b27 100644 --- a/runtime_file.c +++ b/runtime_file.c @@ -1162,9 +1162,6 @@ void runtime_update_playlist( runtime_log_t *runtime_log = NULL; const struct playlist_entry *entry = NULL; struct playlist_entry update_entry = {0}; -#if defined(HAVE_MENU) && (defined(HAVE_OZONE) || defined(HAVE_MATERIALUI)) - const char *menu_ident = menu_driver_ident(); -#endif /* Sanity check */ if (!playlist) @@ -1232,6 +1229,7 @@ void runtime_update_playlist( * to be populated even when no runtime is recorded */ if (update_entry.runtime_status != PLAYLIST_RUNTIME_VALID) { + const char *menu_ident = menu_driver_ident(); if ( string_is_equal(menu_ident, "ozone") || string_is_equal(menu_ident, "glui")) { @@ -1270,9 +1268,6 @@ void runtime_update_contentless_core( core_info_t *core_info = NULL; runtime_log_t *runtime_log = NULL; contentless_core_runtime_info_t runtime_info = {0}; -#if (defined(HAVE_OZONE) || defined(HAVE_MATERIALUI)) - const char *menu_ident = menu_driver_ident(); -#endif /* Sanity check */ if ( string_is_empty(core_path) @@ -1325,6 +1320,7 @@ void runtime_update_contentless_core( * to be populated even when no runtime is recorded */ if (runtime_info.status != CONTENTLESS_CORE_RUNTIME_VALID) { + const char *menu_ident = menu_driver_ident(); if ( string_is_equal(menu_ident, "ozone") || string_is_equal(menu_ident, "glui")) {