mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-21 10:11:18 +00:00
action_ok_core_list - add early return if directory cannot be
accessed
This commit is contained in:
parent
436fe5150d
commit
6cbb3ba3c8
@ -420,6 +420,12 @@ static int action_ok_remap_file(const char *path,
|
||||
static int action_ok_core_list(const char *path,
|
||||
const char *label, unsigned type, size_t idx)
|
||||
{
|
||||
if (!path_file_exists(g_settings.libretro_directory))
|
||||
{
|
||||
msg_queue_clear(g_extern.msg_queue);
|
||||
msg_queue_push(g_extern.msg_queue, "Core Directory doesn't exist or cannot be accessed.\n", 1, 180);
|
||||
return -1;
|
||||
}
|
||||
return menu_list_push_stack_refresh(
|
||||
driver.menu->menu_list,
|
||||
g_settings.libretro_directory,
|
||||
|
Loading…
x
Reference in New Issue
Block a user