From a82ccf52b61ab7d827545b97d15c7dca90e17c2f Mon Sep 17 00:00:00 2001 From: Sorgelig Date: Thu, 10 Feb 2022 15:29:51 +0800 Subject: [PATCH] PSX: auto-pick cue/iso if only one available in folder. --- menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.cpp b/menu.cpp index 5921c6d..d431795 100644 --- a/menu.cpp +++ b/menu.cpp @@ -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, "/");