Add sublabels

This commit is contained in:
twinaphex 2017-02-02 04:43:07 +01:00
parent 6779fc14fe
commit 235f6b81df
3 changed files with 97 additions and 5 deletions

View File

@ -2461,3 +2461,51 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_VIDEO_GPU_RECORD,
"Rercords output of GPU shaded material if available."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_INDEX,
"When saving a savestate, save state index is automatically increased before it is saved. Also, when loading content, the index will be set to the highest existing index."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_BLOCK_SRAM_OVERWRITE,
"Block Save RAM from being overwritten when loading save states. Might potentially lead to buggy games."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_FASTFORWARD_RATIO,
"The maximum rate at which content will be run when using fast forward (E.g. 5x for 60 fps content => 300 fps cap). If this is set at 0x, then fastforward ratio is unlimited (no FPS cap)."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_SLOWMOTION_RATIO,
"When slowmotion, content will slow down by a factor."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_REWIND_ENABLE,
"Enable rewinding. This will take a performance hit when playing."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_REWIND_GRANULARITY,
"When rewinding defined number of frames, you can rewind several frames at a time, increasing the rewind speed."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_LIBRETRO_LOG_LEVEL,
"Sets log level for cores. If a log level issued by a core is below this value, it is ignored."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_PERFCNT_ENABLE,
"Enable performance counters for RetroArch (and cores)."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_SAVE,
"Automatically saves a savestate at the end of RetroArch's lifetime. RetroArch will automatically load this savestate if 'Savestate Auto Load' is set."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_LOAD,
"Automatically load the auto save state on startup."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_SAVESTATE_THUMBNAIL_ENABLE,
"Show thumbnails of save states inside the menu."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_AUTOSAVE_INTERVAL,
"Autosaves the non-volatile Save RAM at a regular interval. This is disabled by default unless set otherwise. The interval is measured in seconds. A value of 0 disables autosave."
)

View File

@ -148,6 +148,18 @@ default_sublabel_macro(action_bind_sublabel_video_force_srgb_enable, MENU_
default_sublabel_macro(action_bind_sublabel_video_fullscreen, MENU_ENUM_SUBLABEL_VIDEO_FULLSCREEN)
default_sublabel_macro(action_bind_sublabel_video_windowed_fullscreen, MENU_ENUM_SUBLABEL_VIDEO_WINDOWED_FULLSCREEN)
default_sublabel_macro(action_bind_sublabel_video_gpu_record, MENU_ENUM_SUBLABEL_VIDEO_GPU_RECORD)
default_sublabel_macro(action_bind_sublabel_savestate_auto_index, MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_INDEX)
default_sublabel_macro(action_bind_sublabel_block_sram_overwrite, MENU_ENUM_SUBLABEL_BLOCK_SRAM_OVERWRITE)
default_sublabel_macro(action_bind_sublabel_fastforward_ratio, MENU_ENUM_SUBLABEL_FASTFORWARD_RATIO)
default_sublabel_macro(action_bind_sublabel_slowmotion_ratio, MENU_ENUM_SUBLABEL_SLOWMOTION_RATIO)
default_sublabel_macro(action_bind_sublabel_rewind, MENU_ENUM_SUBLABEL_REWIND_ENABLE)
default_sublabel_macro(action_bind_sublabel_rewind_granularity, MENU_ENUM_SUBLABEL_REWIND_GRANULARITY)
default_sublabel_macro(action_bind_sublabel_libretro_log_level, MENU_ENUM_SUBLABEL_LIBRETRO_LOG_LEVEL)
default_sublabel_macro(action_bind_sublabel_perfcnt_enable, MENU_ENUM_SUBLABEL_PERFCNT_ENABLE)
default_sublabel_macro(action_bind_sublabel_savestate_auto_save, MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_SAVE)
default_sublabel_macro(action_bind_sublabel_savestate_auto_load, MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_LOAD)
default_sublabel_macro(action_bind_sublabel_savestate_thumbnail_enable, MENU_ENUM_SUBLABEL_SAVESTATE_THUMBNAIL_ENABLE)
default_sublabel_macro(action_bind_sublabel_autosave_interval, MENU_ENUM_SUBLABEL_AUTOSAVE_INTERVAL)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -209,6 +221,42 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_AUTOSAVE_INTERVAL:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_autosave_interval);
break;
case MENU_ENUM_LABEL_SAVESTATE_THUMBNAIL_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_savestate_thumbnail_enable);
break;
case MENU_ENUM_LABEL_SAVESTATE_AUTO_SAVE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_savestate_auto_save);
break;
case MENU_ENUM_LABEL_SAVESTATE_AUTO_LOAD:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_savestate_auto_load);
break;
case MENU_ENUM_LABEL_PERFCNT_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_perfcnt_enable);
break;
case MENU_ENUM_LABEL_LIBRETRO_LOG_LEVEL:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_libretro_log_level);
break;
case MENU_ENUM_LABEL_REWIND_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_rewind);
break;
case MENU_ENUM_LABEL_REWIND_GRANULARITY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_rewind_granularity);
break;
case MENU_ENUM_LABEL_SLOWMOTION_RATIO:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_slowmotion_ratio);
break;
case MENU_ENUM_LABEL_FASTFORWARD_RATIO:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_fastforward_ratio);
break;
case MENU_ENUM_LABEL_BLOCK_SRAM_OVERWRITE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_block_sram_overwrite);
break;
case MENU_ENUM_LABEL_SAVESTATE_AUTO_INDEX:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_savestate_auto_index);
break;
case MENU_ENUM_LABEL_VIDEO_GPU_RECORD:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_gpu_record);
break;

View File

@ -56,7 +56,7 @@
# automatically added to a history list.
# history_list_enable = true
# Enable or disable RetroArch performance counters
# Enable performance counters
# perfcnt_enable = false
# Path to core options config file.
@ -803,7 +803,3 @@
# network_cmd_enable = false
# network_cmd_port = 55355
# stdin_cmd_enable = false
#### Bundle extraction