And .host as well.

This commit is contained in:
OBattler
2024-05-20 02:17:36 +02:00
parent 7c74a977fa
commit f8b93dc24e
2 changed files with 1 additions and 2 deletions

View File

@@ -245,7 +245,6 @@ typedef struct cdrom {
int audio_op;
int audio_muted_soft;
int sony_msf;
int host;
const cdrom_ops_t *ops;

View File

@@ -485,7 +485,7 @@ MediaMenu::cdromMount(int i, const QString &filename)
cdrom[i].ops = nullptr;
memset(cdrom[i].image_path, 0, sizeof(cdrom[i].image_path));
#ifdef Q_OS_WINDOWS
if (!cdrom[i].host && (fn.data() != nullptr) && (strlen(fn.data()) >= 1) && (fn.data()[strlen(fn.data()) - 1] == '/'))
if ((fn.data() != nullptr) && (strlen(fn.data()) >= 1) && (fn.data()[strlen(fn.data()) - 1] == '/'))
fn.data()[strlen(fn.data()) - 1] = '\\';
#else
if ((fn.data() != NULL) && (strlen(fn.data()) >= 1) && (fn.data()[strlen(fn.data()) - 1] == '\\'))