Saturn: initial support. (#612)

This commit is contained in:
Sergey Dvodnenko
2022-05-22 15:09:13 +03:00
committed by GitHub
parent e1a58541c0
commit 2bc233b851
9 changed files with 1326 additions and 2 deletions

View File

@@ -2156,6 +2156,7 @@ void HandleUI(void)
}
if (is_pce() && !bit) pcecd_reset();
if (is_saturn() && !bit) saturn_reset();
user_io_status_set(opt, 1, ex);
user_io_status_set(opt, 0, ex);
@@ -2278,6 +2279,10 @@ void HandleUI(void)
psx_mount_cd(user_io_ext_idx(selPath, fs_pFileExt) << 6 | (menusub + 1), ioctl_index, selPath);
cheats_init(selPath, 0);
}
else if (is_saturn())
{
saturn_set_image(ioctl_index, selPath);
}
else
{
user_io_set_index(user_io_ext_idx(selPath, fs_pFileExt) << 6 | (menusub + 1));
@@ -4800,7 +4805,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() || (is_psx() && !(fs_Options & SCANO_SAVES))) && type == DT_DIR && strcmp(flist_SelectedItem()->de.d_name, ".."))
if ((fs_Options & SCANO_UMOUNT) && (is_megacd() || is_pce() || (is_psx() && !(fs_Options & SCANO_SAVES)) || is_saturn()) && type == DT_DIR && strcmp(flist_SelectedItem()->de.d_name, ".."))
{
int len = strlen(selPath);
strcat(selPath, "/");