mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Add sublabel
This commit is contained in:
parent
720cd4ff7e
commit
d0851d28dc
@ -3023,6 +3023,8 @@ const char *msg_hash_to_str_us(enum msg_hash_enums msg)
|
|||||||
|
|
||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
|
case MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC_FRAMES:
|
||||||
|
return "Sets how many frames the CPU can run ahead of the GPU when using 'Hard GPU Sync'.";
|
||||||
case MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO:
|
case MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO:
|
||||||
return "The accurate estimated refresh rate of the monitor in Hz.";
|
return "The accurate estimated refresh rate of the monitor in Hz.";
|
||||||
case MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX:
|
case MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX:
|
||||||
|
@ -220,6 +220,16 @@ static int action_bind_sublabel_video_refresh_rate_auto(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int action_bind_sublabel_video_hard_sync_frames(
|
||||||
|
file_list_t *list,
|
||||||
|
unsigned type, unsigned i,
|
||||||
|
const char *label, const char *path,
|
||||||
|
char *s, size_t len)
|
||||||
|
{
|
||||||
|
strlcpy(s, msg_hash_to_str(MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC_FRAMES), len);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
||||||
const char *path, const char *label, unsigned type, size_t idx)
|
const char *path, const char *label, unsigned type, size_t idx)
|
||||||
{
|
{
|
||||||
@ -232,6 +242,9 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
|
|||||||
{
|
{
|
||||||
switch (cbs->enum_idx)
|
switch (cbs->enum_idx)
|
||||||
{
|
{
|
||||||
|
case MENU_ENUM_LABEL_VIDEO_HARD_SYNC_FRAMES:
|
||||||
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_hard_sync_frames);
|
||||||
|
break;
|
||||||
case MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO:
|
case MENU_ENUM_LABEL_VIDEO_REFRESH_RATE_AUTO:
|
||||||
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_refresh_rate_auto);
|
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_refresh_rate_auto);
|
||||||
break;
|
break;
|
||||||
|
@ -1865,6 +1865,7 @@ enum msg_hash_enums
|
|||||||
MENU_ENUM_LABEL_CB_CORE_UPDATER_DOWNLOAD,
|
MENU_ENUM_LABEL_CB_CORE_UPDATER_DOWNLOAD,
|
||||||
MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD,
|
MENU_ENUM_LABEL_CB_CORE_THUMBNAILS_DOWNLOAD,
|
||||||
|
|
||||||
|
MENU_ENUM_SUBLABEL_VIDEO_HARD_SYNC_FRAMES,
|
||||||
MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO,
|
MENU_ENUM_SUBLABEL_VIDEO_REFRESH_RATE_AUTO,
|
||||||
MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX,
|
MENU_ENUM_SUBLABEL_VIDEO_MONITOR_INDEX,
|
||||||
MENU_ENUM_SUBLABEL_LOG_VERBOSITY,
|
MENU_ENUM_SUBLABEL_LOG_VERBOSITY,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user