From 965b6d00be3c28da482cf6a30adbef4281996cbc Mon Sep 17 00:00:00 2001 From: Michael Green <84688932+michael-j-green@users.noreply.github.com> Date: Tue, 5 Mar 2024 23:35:19 +1100 Subject: [PATCH] ISO files are prioritised over CUE files Fixes #792 --- data/emulator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/emulator.js b/data/emulator.js index ff97cdb..d296c8b 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -1015,14 +1015,14 @@ class EmulatorJS { } 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 (supportsExt('cue') || supportsExt('ccd') || supportsExt('toc') || supportsExt('m3u')) { if (cueFile !== null) { this.fileName = cueFile; } else if (!disableCue) { this.fileName = this.gameManager.createCueFile(fileNames); } + } else if (isoFile !== null && (supportsExt('iso') || supportsExt('cso') || supportsExt('chd') || supportsExt('elf'))) { + this.fileName = isoFile; } resolve(); });