mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Fix --disable-menu
This commit is contained in:
parent
d03a0a7b51
commit
6690790dae
@ -114,15 +114,23 @@ static void cb_task_manual_content_scan(
|
|||||||
playlist_t *cached_playlist = playlist_get_cached();
|
playlist_t *cached_playlist = playlist_get_cached();
|
||||||
#if defined(RARCH_INTERNAL) && defined(HAVE_MENU)
|
#if defined(RARCH_INTERNAL) && defined(HAVE_MENU)
|
||||||
menu_ctx_environment_t menu_environ;
|
menu_ctx_environment_t menu_environ;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!task)
|
if (!task)
|
||||||
goto end;
|
goto end;
|
||||||
|
#else
|
||||||
|
if (!task)
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
manual_scan = (manual_scan_handle_t*)task->state;
|
manual_scan = (manual_scan_handle_t*)task->state;
|
||||||
|
|
||||||
if (!manual_scan)
|
if (!manual_scan)
|
||||||
|
{
|
||||||
|
#if defined(RARCH_INTERNAL) && defined(HAVE_MENU)
|
||||||
goto end;
|
goto end;
|
||||||
|
#else
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/* If the manual content scan task has modified the
|
/* If the manual content scan task has modified the
|
||||||
* currently cached playlist, then it must be re-cached
|
* currently cached playlist, then it must be re-cached
|
||||||
@ -141,10 +149,10 @@ static void cb_task_manual_content_scan(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(RARCH_INTERNAL) && defined(HAVE_MENU)
|
||||||
end:
|
end:
|
||||||
/* When creating playlists, the playlist tabs of
|
/* When creating playlists, the playlist tabs of
|
||||||
* any active menu driver must be refreshed */
|
* any active menu driver must be refreshed */
|
||||||
#if defined(RARCH_INTERNAL) && defined(HAVE_MENU)
|
|
||||||
menu_environ.type = MENU_ENVIRON_RESET_HORIZONTAL_LIST;
|
menu_environ.type = MENU_ENVIRON_RESET_HORIZONTAL_LIST;
|
||||||
menu_environ.data = NULL;
|
menu_environ.data = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user