PSX: auto-pick cue/iso if only one available in folder.

This commit is contained in:
Sorgelig
2022-02-10 15:29:51 +08:00
parent f45b2b5bab
commit a82ccf52b6

View File

@@ -2029,7 +2029,7 @@ void HandleUI(void)
if (is_x86()) strcpy(Selected_tmp, x86_get_image_path(ioctl_index));
if (is_psx() && (ioctl_index == 2 || ioctl_index == 3)) fs_Options |= SCANO_SAVES;
if (is_pce() || is_megacd() || is_x86())
if (is_pce() || is_megacd() || is_x86() || (is_psx() && !(fs_Options & SCANO_SAVES)))
{
//look for CHD too
strcat(fs_pFileExt, "CHD");
@@ -4656,7 +4656,7 @@ void HandleUI(void)
char type = flist_SelectedItem()->de.d_type;
memcpy(name, flist_SelectedItem()->de.d_name, sizeof(name));
if ((fs_Options & SCANO_UMOUNT) && (is_megacd() || is_pce()) && type == DT_DIR && strcmp(flist_SelectedItem()->de.d_name, ".."))
if ((fs_Options & SCANO_UMOUNT) && (is_megacd() || is_pce() || (is_psx() && !(fs_Options & SCANO_SAVES))) && type == DT_DIR && strcmp(flist_SelectedItem()->de.d_name, ".."))
{
int len = strlen(selPath);
strcat(selPath, "/");