mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(Ozone) Update - hide Load Core when core and/or content is running
This commit is contained in:
parent
d492f1acaf
commit
5b04350376
@ -833,9 +833,7 @@ static int ozone_list_push(void *data, void *userdata,
|
|||||||
entry.parse_type = PARSE_ACTION;
|
entry.parse_type = PARSE_ACTION;
|
||||||
entry.add_empty_entry = false;
|
entry.add_empty_entry = false;
|
||||||
|
|
||||||
if (!string_is_empty(system->info.library_name) &&
|
if (rarch_ctl(RARCH_CTL_CORE_IS_RUNNING, NULL))
|
||||||
!string_is_equal(system->info.library_name,
|
|
||||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NO_CORE)))
|
|
||||||
{
|
{
|
||||||
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
if (!rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
|
||||||
{
|
{
|
||||||
@ -843,21 +841,23 @@ static int ozone_list_push(void *data, void *userdata,
|
|||||||
menu_displaylist_setting(&entry);
|
menu_displaylist_setting(&entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
if (system->load_no_content)
|
|
||||||
{
|
{
|
||||||
entry.enum_idx = MENU_ENUM_LABEL_START_CORE;
|
if (system->load_no_content)
|
||||||
menu_displaylist_setting(&entry);
|
{
|
||||||
}
|
entry.enum_idx = MENU_ENUM_LABEL_START_CORE;
|
||||||
|
menu_displaylist_setting(&entry);
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef HAVE_DYNAMIC
|
#ifndef HAVE_DYNAMIC
|
||||||
if (frontend_driver_has_fork())
|
if (frontend_driver_has_fork())
|
||||||
#endif
|
#endif
|
||||||
{
|
|
||||||
if (settings->bools.menu_show_load_core)
|
|
||||||
{
|
{
|
||||||
entry.enum_idx = MENU_ENUM_LABEL_CORE_LIST;
|
if (settings->bools.menu_show_load_core)
|
||||||
menu_displaylist_setting(&entry);
|
{
|
||||||
|
entry.enum_idx = MENU_ENUM_LABEL_CORE_LIST;
|
||||||
|
menu_displaylist_setting(&entry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user