Skip to content

Commit ab5e5d3

Browse files
committed
Add Quick Menu -> Views ->'Show Resume/Restart/Close content'
1 parent b46545c commit ab5e5d3

30 files changed

+563
-30
lines changed

config.def.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,12 @@
335335
#define DEFAULT_OZONE_TRUNCATE_PLAYLIST_NAME true
336336
#endif
337337

338+
#define DEFAULT_QUICK_MENU_SHOW_RESUME_CONTENT true
339+
340+
#define DEFAULT_QUICK_MENU_SHOW_RESTART_CONTENT true
341+
342+
#define DEFAULT_QUICK_MENU_SHOW_CLOSE_CONTENT true
343+
338344
static bool quick_menu_show_take_screenshot = true;
339345
static bool quick_menu_show_save_load_state = true;
340346
static bool quick_menu_show_undo_save_load_state = true;

configuration.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,9 @@ static struct config_bool_setting *populate_settings_bool(settings_t *settings,
14531453
SETTING_BOOL("menu_core_enable", &settings->bools.menu_core_enable, true, true, false);
14541454
SETTING_BOOL("menu_show_sublabels", &settings->bools.menu_show_sublabels, true, menu_show_sublabels, false);
14551455
SETTING_BOOL("menu_dynamic_wallpaper_enable", &settings->bools.menu_dynamic_wallpaper_enable, true, false, false);
1456+
SETTING_BOOL("quick_menu_show_resume_content", &settings->bools.quick_menu_show_resume_content, true, DEFAULT_QUICK_MENU_SHOW_RESUME_CONTENT, false);
1457+
SETTING_BOOL("quick_menu_show_restart_content", &settings->bools.quick_menu_show_restart_content, true, DEFAULT_QUICK_MENU_SHOW_RESTART_CONTENT, false);
1458+
SETTING_BOOL("quick_menu_show_close_content", &settings->bools.quick_menu_show_close_content, true, DEFAULT_QUICK_MENU_SHOW_CLOSE_CONTENT, false);
14561459
SETTING_BOOL("quick_menu_show_recording", &settings->bools.quick_menu_show_recording, true, quick_menu_show_recording, false);
14571460
SETTING_BOOL("quick_menu_show_streaming", &settings->bools.quick_menu_show_streaming, true, quick_menu_show_streaming, false);
14581461
SETTING_BOOL("quick_menu_show_save_load_state", &settings->bools.quick_menu_show_save_load_state, true, quick_menu_show_save_load_state, false);

configuration.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ typedef struct settings
203203
bool menu_use_preferred_system_color_theme;
204204
bool menu_preferred_system_color_theme_set;
205205
bool menu_unified_controls;
206+
bool quick_menu_show_resume_content;
207+
bool quick_menu_show_restart_content;
208+
bool quick_menu_show_close_content;
206209
bool quick_menu_show_take_screenshot;
207210
bool quick_menu_show_save_load_state;
208211
bool quick_menu_show_undo_save_load_state;

intl/msg_hash_ar.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3830,3 +3830,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
38303830
"Framerate Update Interval (in frames)")
38313831
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
38323832
"Framerate display will be updated at the set interval (in frames).")
3833+
MSG_HASH(
3834+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
3835+
"Show Restart Content"
3836+
)
3837+
MSG_HASH(
3838+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
3839+
"Show/hide the 'Restart Content' option."
3840+
)
3841+
MSG_HASH(
3842+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
3843+
"Show Close Content"
3844+
)
3845+
MSG_HASH(
3846+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
3847+
"Show/hide the 'Close Content' option."
3848+
)
3849+
MSG_HASH(
3850+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
3851+
"Show Resume Content"
3852+
)
3853+
MSG_HASH(
3854+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
3855+
"Show/hide the 'Resume Content' option."
3856+
)

intl/msg_hash_chs.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4848,3 +4848,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
48484848
"Framerate Update Interval (in frames)")
48494849
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
48504850
"Framerate display will be updated at the set interval (in frames).")
4851+
MSG_HASH(
4852+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
4853+
"Show Restart Content"
4854+
)
4855+
MSG_HASH(
4856+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
4857+
"Show/hide the 'Restart Content' option."
4858+
)
4859+
MSG_HASH(
4860+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
4861+
"Show Close Content"
4862+
)
4863+
MSG_HASH(
4864+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
4865+
"Show/hide the 'Close Content' option."
4866+
)
4867+
MSG_HASH(
4868+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
4869+
"Show Resume Content"
4870+
)
4871+
MSG_HASH(
4872+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
4873+
"Show/hide the 'Resume Content' option."
4874+
)

intl/msg_hash_cht.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3606,3 +3606,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
36063606
"Framerate Update Interval (in frames)")
36073607
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
36083608
"Framerate display will be updated at the set interval (in frames).")
3609+
MSG_HASH(
3610+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
3611+
"Show Restart Content"
3612+
)
3613+
MSG_HASH(
3614+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
3615+
"Show/hide the 'Restart Content' option."
3616+
)
3617+
MSG_HASH(
3618+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
3619+
"Show Close Content"
3620+
)
3621+
MSG_HASH(
3622+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
3623+
"Show/hide the 'Close Content' option."
3624+
)
3625+
MSG_HASH(
3626+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
3627+
"Show Resume Content"
3628+
)
3629+
MSG_HASH(
3630+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
3631+
"Show/hide the 'Resume Content' option."
3632+
)

intl/msg_hash_de.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3735,3 +3735,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
37353735
"Framerate Update Interval (in frames)")
37363736
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
37373737
"Framerate display will be updated at the set interval (in frames).")
3738+
MSG_HASH(
3739+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
3740+
"Show Restart Content"
3741+
)
3742+
MSG_HASH(
3743+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
3744+
"Show/hide the 'Restart Content' option."
3745+
)
3746+
MSG_HASH(
3747+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
3748+
"Show Close Content"
3749+
)
3750+
MSG_HASH(
3751+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
3752+
"Show/hide the 'Close Content' option."
3753+
)
3754+
MSG_HASH(
3755+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
3756+
"Show Resume Content"
3757+
)
3758+
MSG_HASH(
3759+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
3760+
"Show/hide the 'Resume Content' option."
3761+
)

intl/msg_hash_el.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7812,3 +7812,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
78127812
"Framerate Update Interval (in frames)")
78137813
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
78147814
"Framerate display will be updated at the set interval (in frames).")
7815+
MSG_HASH(
7816+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
7817+
"Show Restart Content"
7818+
)
7819+
MSG_HASH(
7820+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
7821+
"Show/hide the 'Restart Content' option."
7822+
)
7823+
MSG_HASH(
7824+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
7825+
"Show Close Content"
7826+
)
7827+
MSG_HASH(
7828+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
7829+
"Show/hide the 'Close Content' option."
7830+
)
7831+
MSG_HASH(
7832+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
7833+
"Show Resume Content"
7834+
)
7835+
MSG_HASH(
7836+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
7837+
"Show/hide the 'Resume Content' option."
7838+
)

intl/msg_hash_eo.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3494,3 +3494,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
34943494
"Framerate Update Interval (in frames)")
34953495
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
34963496
"Framerate display will be updated at the set interval (in frames).")
3497+
MSG_HASH(
3498+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
3499+
"Show Restart Content"
3500+
)
3501+
MSG_HASH(
3502+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
3503+
"Show/hide the 'Restart Content' option."
3504+
)
3505+
MSG_HASH(
3506+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
3507+
"Show Close Content"
3508+
)
3509+
MSG_HASH(
3510+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
3511+
"Show/hide the 'Close Content' option."
3512+
)
3513+
MSG_HASH(
3514+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
3515+
"Show Resume Content"
3516+
)
3517+
MSG_HASH(
3518+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
3519+
"Show/hide the 'Resume Content' option."
3520+
)

intl/msg_hash_es.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7964,3 +7964,27 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_FPS_UPDATE_INTERVAL,
79647964
"Framerate Update Interval (in frames)")
79657965
MSG_HASH(MENU_ENUM_SUBLABEL_FPS_UPDATE_INTERVAL,
79667966
"Framerate display will be updated at the set interval (in frames).")
7967+
MSG_HASH(
7968+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESTART_CONTENT,
7969+
"Show Restart Content"
7970+
)
7971+
MSG_HASH(
7972+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESTART_CONTENT,
7973+
"Show/hide the 'Restart Content' option."
7974+
)
7975+
MSG_HASH(
7976+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_CLOSE_CONTENT,
7977+
"Show Close Content"
7978+
)
7979+
MSG_HASH(
7980+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_CLOSE_CONTENT,
7981+
"Show/hide the 'Close Content' option."
7982+
)
7983+
MSG_HASH(
7984+
MENU_ENUM_LABEL_VALUE_QUICK_MENU_SHOW_RESUME_CONTENT,
7985+
"Show Resume Content"
7986+
)
7987+
MSG_HASH(
7988+
MENU_ENUM_SUBLABEL_QUICK_MENU_SHOW_RESUME_CONTENT,
7989+
"Show/hide the 'Resume Content' option."
7990+
)

0 commit comments

Comments
 (0)