CD-ROM: Converted the wrong kind of trailing slash, fixes #4038.

This commit is contained in:
OBattler
2024-01-14 21:31:46 +01:00
parent b8462142b7
commit 5c15da4a17
4 changed files with 31 additions and 1 deletions

View File

@@ -136,6 +136,8 @@ cdrom_mount(uint8_t id, char *fn)
cdrom[id].ops->exit(&(cdrom[id]));
cdrom[id].ops = NULL;
memset(cdrom[id].image_path, 0, sizeof(cdrom[id].image_path));
if ((fn != NULL) && (strlen(fn) >= 1) && ((fn[strlen(fn) - 1] == '/'))
fn[strlen(fn) - 1] = '\\';
cdrom_image_open(&(cdrom[id]), fn);
/* Signal media change to the emulated machine. */
if (cdrom[id].insert)