Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISO files are prioritised over CUE files #792

Open
michael-j-green opened this issue Mar 3, 2024 · 0 comments · May be fixed by #794
Open

ISO files are prioritised over CUE files #792

michael-j-green opened this issue Mar 3, 2024 · 0 comments · May be fixed by #794
Assignees
Labels
bug Something isn't working

Comments

@michael-j-green
Copy link
Contributor

This section of code prioritises ISOs over CUEs, and should be the other way around:

if (supportedFile !== null) {
    this.fileName = supportedFile;
} else {
    this.fileName = fileNames[0];
}
if (isoFile !== null && (supportsExt('iso') || supportsExt('cso') || supportsExt('chd') || supportsExt('elf'))) {
    this.fileName = isoFile;
} else if (supportsExt('cue') || supportsExt('ccd') || supportsExt('toc') || supportsExt('m3u')) {
    if (cueFile !== null) {
        this.fileName = cueFile;
    } else if (!disableCue) {
        this.fileName = this.gameManager.createCueFile(fileNames);
    }
}
@michael-j-green michael-j-green added the bug Something isn't working label Mar 3, 2024
@michael-j-green michael-j-green self-assigned this Mar 3, 2024
michael-j-green added a commit that referenced this issue Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant