And .host as well.
This commit is contained in:
@@ -245,7 +245,6 @@ typedef struct cdrom {
|
|||||||
int audio_op;
|
int audio_op;
|
||||||
int audio_muted_soft;
|
int audio_muted_soft;
|
||||||
int sony_msf;
|
int sony_msf;
|
||||||
int host;
|
|
||||||
|
|
||||||
const cdrom_ops_t *ops;
|
const cdrom_ops_t *ops;
|
||||||
|
|
||||||
|
@@ -485,7 +485,7 @@ MediaMenu::cdromMount(int i, const QString &filename)
|
|||||||
cdrom[i].ops = nullptr;
|
cdrom[i].ops = nullptr;
|
||||||
memset(cdrom[i].image_path, 0, sizeof(cdrom[i].image_path));
|
memset(cdrom[i].image_path, 0, sizeof(cdrom[i].image_path));
|
||||||
#ifdef Q_OS_WINDOWS
|
#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] = '\\';
|
fn.data()[strlen(fn.data()) - 1] = '\\';
|
||||||
#else
|
#else
|
||||||
if ((fn.data() != NULL) && (strlen(fn.data()) >= 1) && (fn.data()[strlen(fn.data()) - 1] == '\\'))
|
if ((fn.data() != NULL) && (strlen(fn.data()) >= 1) && (fn.data()[strlen(fn.data()) - 1] == '\\'))
|
||||||
|
Reference in New Issue
Block a user