Skip to content

Commit 5ee450a

Browse files
committed
Reorganize Saving menu
- Add prefixes and sort by them - Flag compression options as advanced - Move GPU Screenshots from Video menu
1 parent d610712 commit 5ee450a

3 files changed

Lines changed: 66 additions & 64 deletions

File tree

intl/msg_hash_us.h

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,10 +1852,6 @@ MSG_HASH(
18521852
MENU_ENUM_LABEL_HELP_VIDEO_SHADER_SUBFRAMES,
18531853
"Inserts extra shader frame(s) inbetween frames for any possible shader effects that are designed to run faster than content rate. Only use option designated for your current display refresh rate. Not for use at refresh rates that are non-multiples of 60Hz such as 144Hz, 165Hz, etc. Do not combine with Swap Interval > 1, BFI, Frame Delay, or Sync to Exact Content Framerate. Leaving system VRR on is ok, just not that setting."
18541854
)
1855-
MSG_HASH(
1856-
MENU_ENUM_LABEL_VALUE_VIDEO_GPU_SCREENSHOT,
1857-
"GPU Screenshot"
1858-
)
18591855
MSG_HASH(
18601856
MENU_ENUM_LABEL_VALUE_VIDEO_SCAN_SUBFRAMES,
18611857
"Rolling scanline simulation"
@@ -1868,10 +1864,6 @@ MSG_HASH(
18681864
MENU_ENUM_LABEL_HELP_VIDEO_SCAN_SUBFRAMES,
18691865
"Simulates a basic rolling scanline over multiple sub-frames by dividing the screen up vertically and rendering each part of the screen according to how many sub-frames there are from the top of the screen down."
18701866
)
1871-
MSG_HASH(
1872-
MENU_ENUM_SUBLABEL_VIDEO_GPU_SCREENSHOT,
1873-
"Screenshots capture GPU shaded material if available."
1874-
)
18751867
MSG_HASH(
18761868
MENU_ENUM_LABEL_VALUE_VIDEO_SMOOTH,
18771869
"Bilinear Filtering"
@@ -4637,47 +4629,47 @@ MSG_HASH(
46374629

46384630
MSG_HASH(
46394631
MENU_ENUM_LABEL_VALUE_SORT_SAVEFILES_ENABLE,
4640-
"Sort Saves into Folders by Core Name"
4632+
"Save File: Sort into Folders by Core Name"
46414633
)
46424634
MSG_HASH(
46434635
MENU_ENUM_SUBLABEL_SORT_SAVEFILES_ENABLE,
46444636
"Sort save files into folders named after the core used."
46454637
)
46464638
MSG_HASH(
46474639
MENU_ENUM_LABEL_VALUE_SORT_SAVESTATES_ENABLE,
4648-
"Sort Save States into Folders by Core Name"
4640+
"Save State: Sort into Folders by Core Name"
46494641
)
46504642
MSG_HASH(
46514643
MENU_ENUM_SUBLABEL_SORT_SAVESTATES_ENABLE,
46524644
"Sort save states in folders named after the core used."
46534645
)
46544646
MSG_HASH(
46554647
MENU_ENUM_LABEL_VALUE_SORT_SAVEFILES_BY_CONTENT_ENABLE,
4656-
"Sort Saves into Folders by Content Directory"
4648+
"Save File: Sort into Folders by Content Directory"
46574649
)
46584650
MSG_HASH(
46594651
MENU_ENUM_SUBLABEL_SORT_SAVEFILES_BY_CONTENT_ENABLE,
46604652
"Sort save files into folders named after the directory in which the content is located."
46614653
)
46624654
MSG_HASH(
46634655
MENU_ENUM_LABEL_VALUE_SORT_SAVESTATES_BY_CONTENT_ENABLE,
4664-
"Sort Save States into Folders by Content Directory"
4656+
"Save State: Sort into Folders by Content Directory"
46654657
)
46664658
MSG_HASH(
46674659
MENU_ENUM_SUBLABEL_SORT_SAVESTATES_BY_CONTENT_ENABLE,
46684660
"Sort save states in folders named after the directory in which the content is located."
46694661
)
46704662
MSG_HASH(
46714663
MENU_ENUM_LABEL_VALUE_BLOCK_SRAM_OVERWRITE,
4672-
"Don't Overwrite SaveRAM on Loading Save State"
4664+
"Save File: Don't Overwrite SaveRAM on Loading Save State"
46734665
)
46744666
MSG_HASH(
46754667
MENU_ENUM_SUBLABEL_BLOCK_SRAM_OVERWRITE,
46764668
"Block SaveRAM from being overwritten when loading save states. Might potentially lead to buggy games."
46774669
)
46784670
MSG_HASH(
46794671
MENU_ENUM_LABEL_VALUE_AUTOSAVE_INTERVAL,
4680-
"SaveRAM Autosave Interval"
4672+
"Save File: SaveRAM Autosave Interval"
46814673
)
46824674
MSG_HASH(
46834675
MENU_ENUM_SUBLABEL_AUTOSAVE_INTERVAL,
@@ -4689,7 +4681,7 @@ MSG_HASH(
46894681
)
46904682
MSG_HASH(
46914683
MENU_ENUM_LABEL_VALUE_REPLAY_CHECKPOINT_INTERVAL,
4692-
"Replay Checkpoint Interval"
4684+
"Replay: Checkpoint Interval"
46934685
)
46944686
MSG_HASH(
46954687
MENU_ENUM_SUBLABEL_REPLAY_CHECKPOINT_INTERVAL,
@@ -4705,103 +4697,95 @@ MSG_HASH(
47054697
)
47064698
MSG_HASH(
47074699
MENU_ENUM_LABEL_VALUE_REPLAY_CHECKPOINT_DESERIALIZE,
4708-
"Replay Checkpoint Deserialize"
4700+
"Replay: Checkpoint Deserialize"
47094701
)
47104702
MSG_HASH(
47114703
MENU_ENUM_LABEL_HELP_REPLAY_CHECKPOINT_DESERIALIZE,
47124704
"Whether to deserialize checkpoints stored in replays during regular playback. Should be set to true for most cores, but some may exhibit janky behavior when deserializing content."
47134705
)
47144706
MSG_HASH(
47154707
MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_INDEX,
4716-
"Increment Save State Index Automatically"
4708+
"Save State: Increment Index Automatically"
47174709
)
47184710
MSG_HASH(
47194711
MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_INDEX,
47204712
"Before making a save state, the save state index is automatically increased. When loading content, the index will be set to the highest existing index."
47214713
)
47224714
MSG_HASH(
47234715
MENU_ENUM_LABEL_VALUE_REPLAY_AUTO_INDEX,
4724-
"Increment Replay Index Automatically"
4716+
"Replay: Increment Index Automatically"
47254717
)
47264718
MSG_HASH(
47274719
MENU_ENUM_SUBLABEL_REPLAY_AUTO_INDEX,
47284720
"Before making a replay, the replay index is automatically increased. When loading content, the index will be set to the highest existing index."
47294721
)
47304722
MSG_HASH(
47314723
MENU_ENUM_LABEL_VALUE_SAVESTATE_MAX_KEEP,
4732-
"Maximum Auto-Increment Save States to Keep"
4724+
"Save State: Maximum Auto-Increment to Keep"
47334725
)
47344726
MSG_HASH(
47354727
MENU_ENUM_SUBLABEL_SAVESTATE_MAX_KEEP,
4736-
"Limit the number of save states that will be created when 'Increment Save State Index Automatically' is enabled. If limit is exceeded when saving a new state, the existing state with the lowest index will be deleted. A value of '0' means unlimited states will be recorded."
4728+
"Limit the number of save states that will be created when 'Increment Index Automatically' is enabled. If limit is exceeded when saving a new state, the existing state with the lowest index will be deleted. A value of '0' means unlimited states will be recorded."
47374729
)
47384730
MSG_HASH(
47394731
MENU_ENUM_LABEL_VALUE_REPLAY_MAX_KEEP,
4740-
"Maximum Auto-Increment Replays to Keep"
4732+
"Replay: Maximum Auto-Increment to Keep"
47414733
)
47424734
MSG_HASH(
47434735
MENU_ENUM_SUBLABEL_REPLAY_MAX_KEEP,
4744-
"Limit the number of replays that will be created when 'Increment Replay Index Automatically' is enabled. If limit is exceeded when recording a new replay, the existing replay with the lowest index will be deleted. A value of '0' means unlimited replays will be recorded."
4736+
"Limit the number of replays that will be created when 'Increment Index Automatically' is enabled. If limit is exceeded when recording a new replay, the existing replay with the lowest index will be deleted. A value of '0' means unlimited replays will be recorded."
47454737
)
47464738
MSG_HASH(
47474739
MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_SAVE,
4748-
"Auto Save State"
4740+
"Save State: Auto Save"
47494741
)
47504742
MSG_HASH(
47514743
MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_SAVE,
4752-
"Automatically make a save state when content is closed. This save state is loaded on startup if 'Auto Load State' is enabled."
4744+
"Automatically make a save state when content is closed. This save state is loaded on startup if 'Auto Load' is enabled."
47534745
)
47544746
MSG_HASH(
47554747
MENU_ENUM_LABEL_VALUE_SAVESTATE_AUTO_LOAD,
4756-
"Auto Load State"
4748+
"Save State: Auto Load"
47574749
)
47584750
MSG_HASH(
47594751
MENU_ENUM_SUBLABEL_SAVESTATE_AUTO_LOAD,
47604752
"Automatically load the auto save state on startup."
47614753
)
47624754
MSG_HASH(
47634755
MENU_ENUM_LABEL_VALUE_SAVESTATE_THUMBNAIL_ENABLE,
4764-
"Save State Thumbnails"
4756+
"Save State: Thumbnails"
47654757
)
47664758
MSG_HASH(
47674759
MENU_ENUM_SUBLABEL_SAVESTATE_THUMBNAIL_ENABLE,
4768-
"Show thumbnails of save states in the menu."
4760+
"Show thumbnails of save states."
47694761
)
47704762
MSG_HASH(
47714763
MENU_ENUM_LABEL_VALUE_SAVE_FILE_COMPRESSION,
4772-
"SaveRAM Compression"
4764+
"Save File: Compression"
47734765
)
47744766
MSG_HASH(
47754767
MENU_ENUM_SUBLABEL_SAVE_FILE_COMPRESSION,
47764768
"Write non-volatile SaveRAM files in an archived format. Dramatically reduces file size at the expense of (negligibly) increased saving/loading times.\nOnly applies to cores that enable saving via the standard libretro SaveRAM interface."
47774769
)
47784770
MSG_HASH(
47794771
MENU_ENUM_LABEL_VALUE_SAVESTATE_FILE_COMPRESSION,
4780-
"Save State Compression"
4772+
"Save State: Compression"
47814773
)
47824774
MSG_HASH(
47834775
MENU_ENUM_SUBLABEL_SAVESTATE_FILE_COMPRESSION,
47844776
"Write save state files in an archived format. Dramatically reduces file size at the expense of increased saving/loading times."
47854777
)
4786-
MSG_HASH(
4787-
MENU_ENUM_LABEL_VALUE_SORT_SCREENSHOTS_BY_CONTENT_ENABLE,
4788-
"Sort Screenshots into Folders by Content Directory"
4789-
)
4790-
MSG_HASH(
4791-
MENU_ENUM_SUBLABEL_SORT_SCREENSHOTS_BY_CONTENT_ENABLE,
4792-
"Sort screenshots in folders named after the directory in which the content is located."
4793-
)
47944778
MSG_HASH(
47954779
MENU_ENUM_LABEL_VALUE_SAVEFILES_IN_CONTENT_DIR_ENABLE,
4796-
"Write Saves to Content Directory"
4780+
"Save File: Write to Content Directory"
47974781
)
47984782
MSG_HASH(
47994783
MENU_ENUM_SUBLABEL_SAVEFILES_IN_CONTENT_DIR_ENABLE,
48004784
"Use content directory as save file directory."
48014785
)
48024786
MSG_HASH(
48034787
MENU_ENUM_LABEL_VALUE_SAVESTATES_IN_CONTENT_DIR_ENABLE,
4804-
"Write Save States to Content Directory"
4788+
"Save State: Write to Content Directory"
48054789
)
48064790
MSG_HASH(
48074791
MENU_ENUM_SUBLABEL_SAVESTATES_IN_CONTENT_DIR_ENABLE,
@@ -4815,14 +4799,30 @@ MSG_HASH(
48154799
MENU_ENUM_SUBLABEL_SYSTEMFILES_IN_CONTENT_DIR_ENABLE,
48164800
"Use content directory as System/BIOS directory."
48174801
)
4802+
MSG_HASH(
4803+
MENU_ENUM_LABEL_VALUE_SORT_SCREENSHOTS_BY_CONTENT_ENABLE,
4804+
"Screenshot: Sort into Folders by Content Directory"
4805+
)
4806+
MSG_HASH(
4807+
MENU_ENUM_SUBLABEL_SORT_SCREENSHOTS_BY_CONTENT_ENABLE,
4808+
"Sort screenshots in folders named after the directory in which the content is located."
4809+
)
48184810
MSG_HASH(
48194811
MENU_ENUM_LABEL_VALUE_SCREENSHOTS_IN_CONTENT_DIR_ENABLE,
4820-
"Write Screenshots to Content Directory"
4812+
"Screenshot: Write to Content Directory"
48214813
)
48224814
MSG_HASH(
48234815
MENU_ENUM_SUBLABEL_SCREENSHOTS_IN_CONTENT_DIR_ENABLE,
48244816
"Use content directory as screenshot directory."
48254817
)
4818+
MSG_HASH(
4819+
MENU_ENUM_LABEL_VALUE_VIDEO_GPU_SCREENSHOT,
4820+
"Screenshot: Use GPU"
4821+
)
4822+
MSG_HASH(
4823+
MENU_ENUM_SUBLABEL_VIDEO_GPU_SCREENSHOT,
4824+
"Screenshots capture GPU shaded material if available."
4825+
)
48264826
MSG_HASH(
48274827
MENU_ENUM_LABEL_VALUE_CONTENT_RUNTIME_LOG,
48284828
"Save Runtime Log (Per Core)"

menu/menu_displaylist.c

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8172,17 +8172,6 @@ unsigned menu_displaylist_build_list(
81728172
MENU_ENUM_LABEL_BRIGHTNESS_CONTROL,
81738173
PARSE_ONLY_UINT, false) == 0)
81748174
count++;
8175-
#ifdef HAVE_SCREENSHOTS
8176-
{
8177-
video_driver_state_t *video_st = video_state_get_ptr();
8178-
if ( video_st->current_video->read_viewport
8179-
&& video_st->current_video->viewport_info)
8180-
if (MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM(list,
8181-
MENU_ENUM_LABEL_VIDEO_GPU_SCREENSHOT,
8182-
PARSE_ONLY_BOOL, false) == 0)
8183-
count++;
8184-
}
8185-
#endif
81868175
if (MENU_DISPLAYLIST_PARSE_SETTINGS_ENUM(list,
81878176
MENU_ENUM_LABEL_VIDEO_CTX_SCALING,
81888177
PARSE_ONLY_BOOL, false) == 0)
@@ -11258,34 +11247,37 @@ unsigned menu_displaylist_build_list(
1125811247
bool replay_auto_index = settings->bools.replay_auto_index;
1125911248

1126011249
menu_displaylist_build_info_selective_t build_list[] = {
11250+
#if HAVE_CLOUDSYNC
11251+
{MENU_ENUM_LABEL_CLOUD_SYNC_SETTINGS, PARSE_ACTION, true},
11252+
#endif
1126111253
{MENU_ENUM_LABEL_SORT_SAVEFILES_ENABLE, PARSE_ONLY_BOOL, true},
11262-
{MENU_ENUM_LABEL_SORT_SAVESTATES_ENABLE, PARSE_ONLY_BOOL, true},
1126311254
{MENU_ENUM_LABEL_SORT_SAVEFILES_BY_CONTENT_ENABLE, PARSE_ONLY_BOOL, true},
11264-
{MENU_ENUM_LABEL_SORT_SAVESTATES_BY_CONTENT_ENABLE, PARSE_ONLY_BOOL, true},
11265-
{MENU_ENUM_LABEL_SORT_SCREENSHOTS_BY_CONTENT_ENABLE, PARSE_ONLY_BOOL, true},
1126611255
{MENU_ENUM_LABEL_SAVEFILES_IN_CONTENT_DIR_ENABLE, PARSE_ONLY_BOOL, true},
11267-
{MENU_ENUM_LABEL_SAVESTATES_IN_CONTENT_DIR_ENABLE, PARSE_ONLY_BOOL, true},
11268-
{MENU_ENUM_LABEL_SCREENSHOTS_IN_CONTENT_DIR_ENABLE, PARSE_ONLY_BOOL, true},
1126911256
{MENU_ENUM_LABEL_AUTOSAVE_INTERVAL, PARSE_ONLY_UINT, true},
1127011257
{MENU_ENUM_LABEL_BLOCK_SRAM_OVERWRITE, PARSE_ONLY_BOOL, true},
1127111258
#if defined(HAVE_ZLIB)
1127211259
{MENU_ENUM_LABEL_SAVE_FILE_COMPRESSION, PARSE_ONLY_BOOL, true},
11273-
{MENU_ENUM_LABEL_SAVESTATE_FILE_COMPRESSION, PARSE_ONLY_BOOL, true},
1127411260
#endif
11275-
{MENU_ENUM_LABEL_SAVESTATE_THUMBNAIL_ENABLE, PARSE_ONLY_BOOL, true},
11261+
{MENU_ENUM_LABEL_SORT_SAVESTATES_ENABLE, PARSE_ONLY_BOOL, true},
11262+
{MENU_ENUM_LABEL_SORT_SAVESTATES_BY_CONTENT_ENABLE, PARSE_ONLY_BOOL, true},
11263+
{MENU_ENUM_LABEL_SAVESTATES_IN_CONTENT_DIR_ENABLE, PARSE_ONLY_BOOL, true},
1127611264
{MENU_ENUM_LABEL_SAVESTATE_AUTO_SAVE, PARSE_ONLY_BOOL, true},
1127711265
{MENU_ENUM_LABEL_SAVESTATE_AUTO_LOAD, PARSE_ONLY_BOOL, true},
11266+
{MENU_ENUM_LABEL_SAVESTATE_THUMBNAIL_ENABLE, PARSE_ONLY_BOOL, true},
11267+
#if defined(HAVE_ZLIB)
11268+
{MENU_ENUM_LABEL_SAVESTATE_FILE_COMPRESSION, PARSE_ONLY_BOOL, true},
11269+
#endif
1127811270
{MENU_ENUM_LABEL_SAVESTATE_AUTO_INDEX, PARSE_ONLY_BOOL, true},
1127911271
{MENU_ENUM_LABEL_SAVESTATE_MAX_KEEP, PARSE_ONLY_UINT, false},
1128011272
{MENU_ENUM_LABEL_REPLAY_AUTO_INDEX, PARSE_ONLY_BOOL, true},
1128111273
{MENU_ENUM_LABEL_REPLAY_MAX_KEEP, PARSE_ONLY_UINT, false},
1128211274
{MENU_ENUM_LABEL_REPLAY_CHECKPOINT_INTERVAL, PARSE_ONLY_UINT, true},
1128311275
{MENU_ENUM_LABEL_REPLAY_CHECKPOINT_DESERIALIZE, PARSE_ONLY_BOOL, true},
11276+
{MENU_ENUM_LABEL_SORT_SCREENSHOTS_BY_CONTENT_ENABLE, PARSE_ONLY_BOOL, true},
11277+
{MENU_ENUM_LABEL_SCREENSHOTS_IN_CONTENT_DIR_ENABLE, PARSE_ONLY_BOOL, true},
11278+
{MENU_ENUM_LABEL_VIDEO_GPU_SCREENSHOT, PARSE_ONLY_BOOL, false},
1128411279
{MENU_ENUM_LABEL_CONTENT_RUNTIME_LOG, PARSE_ONLY_BOOL, true},
1128511280
{MENU_ENUM_LABEL_CONTENT_RUNTIME_LOG_AGGREGATE, PARSE_ONLY_BOOL, true},
11286-
#if HAVE_CLOUDSYNC
11287-
{MENU_ENUM_LABEL_CLOUD_SYNC_SETTINGS, PARSE_ACTION, true},
11288-
#endif
1128911281
};
1129011282

1129111283
for (i = 0; i < ARRAY_SIZE(build_list); i++)
@@ -11298,6 +11290,16 @@ unsigned menu_displaylist_build_list(
1129811290
case MENU_ENUM_LABEL_REPLAY_MAX_KEEP:
1129911291
build_list[i].checked = replay_auto_index;
1130011292
break;
11293+
case MENU_ENUM_LABEL_VIDEO_GPU_SCREENSHOT:
11294+
{
11295+
#ifdef HAVE_SCREENSHOTS
11296+
video_driver_state_t *video_st = video_state_get_ptr();
11297+
if ( video_st->current_video->read_viewport
11298+
&& video_st->current_video->viewport_info)
11299+
build_list[i].checked = true;
11300+
#endif
11301+
break;
11302+
}
1130111303
default:
1130211304
break;
1130311305
}

menu/menu_setting.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11775,7 +11775,7 @@ static bool setting_append_list(
1177511775
bool_entries[listing].target = &settings->bools.savestate_thumbnail_enable;
1177611776
bool_entries[listing].name_enum_idx = MENU_ENUM_LABEL_SAVESTATE_THUMBNAIL_ENABLE;
1177711777
bool_entries[listing].SHORT_enum_idx = MENU_ENUM_LABEL_VALUE_SAVESTATE_THUMBNAIL_ENABLE;
11778-
bool_entries[listing].flags = SD_FLAG_NONE;
11778+
bool_entries[listing].flags = SD_FLAG_ADVANCED;
1177911779
if (DEFAULT_SAVESTATE_THUMBNAIL_ENABLE)
1178011780
bool_entries[listing].flags |= SD_FLAG_DEFAULT_VALUE;
1178111781
listing++;
@@ -11984,7 +11984,7 @@ static bool setting_append_list(
1198411984
parent_group,
1198511985
general_write_handler,
1198611986
general_read_handler,
11987-
SD_FLAG_NONE);
11987+
SD_FLAG_ADVANCED);
1198811988

1198911989
CONFIG_BOOL(
1199011990
list, list_info,
@@ -11999,7 +11999,7 @@ static bool setting_append_list(
1199911999
parent_group,
1200012000
general_write_handler,
1200112001
general_read_handler,
12002-
SD_FLAG_NONE);
12002+
SD_FLAG_ADVANCED);
1200312003
#endif
1200412004

1200512005
CONFIG_ACTION(

0 commit comments

Comments
 (0)