NeoGeo: use NeoGeo-CD folder for CD (and CD BIOS).

This commit is contained in:
Sorgelig
2023-07-08 22:22:55 +08:00
parent 6b76b89484
commit 4cee92ac1a
3 changed files with 14 additions and 3 deletions

View File

@@ -393,7 +393,10 @@ void SelectFile(const char* path, const char* pFileExt, int Options, unsigned ch
}
else
{
const char *home = is_menu() ? "Scripts" : user_io_get_core_path((is_pce() && !strncasecmp(pFileExt, "CUE", 3)) ? PCECD_DIR : NULL, 1);
const char *home = is_menu() ? "Scripts" : user_io_get_core_path(
(is_pce() && !strncasecmp(pFileExt, "CUE", 3)) ? PCECD_DIR :
(is_neogeo() && !strncasecmp(pFileExt, "CUE", 3)) ? NEOCD_DIR :
NULL, 1);
home_dir = strrchr(home, '/');
if (home_dir) home_dir++;
else home_dir = home;