mirror of
https://github.com/libretro/RetroArch
synced 2025-03-15 13:21:29 +00:00
runtime_file.c - Move scope of menu_driver_ident call
This commit is contained in:
parent
2533bbdc0b
commit
47d199297a
@ -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"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user