Add RARCH_MENU_CTL_PLAYLIST_GET

This commit is contained in:
twinaphex 2015-12-11 12:40:59 +01:00
parent 280281e644
commit 5ce356c3fc
2 changed files with 10 additions and 1 deletions

View File

@ -666,6 +666,14 @@ bool menu_driver_ctl(enum rarch_menu_ctl_state state, void *data)
menu_driver_data_own = false; menu_driver_data_own = false;
menu_driver_ctx = NULL; menu_driver_ctx = NULL;
break; break;
case RARCH_MENU_CTL_PLAYLIST_GET:
{
content_playlist_t **playlist = (content_playlist_t**)data;
if (!playlist || !menu_driver_data)
return false;
*playlist = menu_driver_data->playlist;
}
return true;
case RARCH_MENU_CTL_SYSTEM_INFO_GET: case RARCH_MENU_CTL_SYSTEM_INFO_GET:
{ {
struct retro_system_info **system = (struct retro_system_info**)data; struct retro_system_info **system = (struct retro_system_info**)data;

View File

@ -115,7 +115,8 @@ enum rarch_menu_ctl_state
RARCH_MENU_CTL_SET_LOAD_NO_CONTENT, RARCH_MENU_CTL_SET_LOAD_NO_CONTENT,
RARCH_MENU_CTL_UNSET_LOAD_NO_CONTENT, RARCH_MENU_CTL_UNSET_LOAD_NO_CONTENT,
RARCH_MENU_CTL_SYSTEM_INFO_DEINIT, RARCH_MENU_CTL_SYSTEM_INFO_DEINIT,
RARCH_MENU_CTL_SYSTEM_INFO_GET RARCH_MENU_CTL_SYSTEM_INFO_GET,
RARCH_MENU_CTL_PLAYLIST_GET
}; };
typedef enum typedef enum