mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Bind start callback for playlist entries in Playlist Screen
This commit is contained in:
parent
2a500baaca
commit
7150d6ef59
@ -50,8 +50,11 @@
|
|||||||
cbs->action_start_ident = #name;
|
cbs->action_start_ident = #name;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Forward declarations */
|
||||||
int generic_action_ok_command(enum event_command cmd);
|
int generic_action_ok_command(enum event_command cmd);
|
||||||
|
|
||||||
|
int action_ok_push_playlist_manager_settings(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx);
|
||||||
|
|
||||||
#ifdef HAVE_AUDIOMIXER
|
#ifdef HAVE_AUDIOMIXER
|
||||||
static int action_start_audio_mixer_stream_volume(
|
static int action_start_audio_mixer_stream_volume(
|
||||||
const char *path, const char *label,
|
const char *path, const char *label,
|
||||||
@ -536,7 +539,16 @@ static int menu_cbs_init_bind_start_compare_type(menu_file_list_cbs_t *cbs,
|
|||||||
BIND_ACTION_START(cbs, action_start_video_resolution);
|
BIND_ACTION_START(cbs, action_start_video_resolution);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return -1;
|
{
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case FILE_TYPE_PLAYLIST_COLLECTION:
|
||||||
|
BIND_ACTION_START(cbs, action_ok_push_playlist_manager_settings);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user