Prevent Vice64 from creating cue files (#694)

* Prevent Vice from trying to use cue files

* Added C64 to the demo page
This commit is contained in:
Michael Green 2023-10-03 23:26:00 +11:00
parent 72b23e386c
commit 895a95289d
3 changed files with 7 additions and 3 deletions

View file

@ -898,7 +898,7 @@ class EmulatorJS {
const altName = this.config.gameUrl.startsWith("blob:") ? (this.config.gameName || "game") : extractFileNameFromUrl(this.config.gameUrl); const altName = this.config.gameUrl.startsWith("blob:") ? (this.config.gameName || "game") : extractFileNameFromUrl(this.config.gameUrl);
let disableCue = false; let disableCue = false;
if (['pcsx_rearmed', 'genesis_plus_gx', 'picodrive', 'mednafen_pce'].includes(this.getCore()) && this.config.disableCue === undefined) { if (['pcsx_rearmed', 'genesis_plus_gx', 'picodrive', 'mednafen_pce', 'vice_x64'].includes(this.getCore()) && this.config.disableCue === undefined) {
disableCue = true; disableCue = true;
} else { } else {
disableCue = this.config.disableCue; disableCue = this.config.disableCue;

File diff suppressed because one or more lines are too long

View file

@ -117,6 +117,9 @@
if (["col", "cv"].includes(ext)) if (["col", "cv"].includes(ext))
return "coleco" return "coleco"
if (["d64"].includes(ext))
return "vice_x64"
if (["nds", "gba", "gb", "z64", "n64"].includes(ext)) if (["nds", "gba", "gb", "z64", "n64"].includes(ext))
return ext return ext
@ -144,7 +147,8 @@
"NEC PC-FX": "pcfx", "NEC PC-FX": "pcfx",
"SNK NeoGeo Pocket (Color)": "ngp", "SNK NeoGeo Pocket (Color)": "ngp",
"Bandai WonderSwan (Color)": "ws", "Bandai WonderSwan (Color)": "ws",
"ColecoVision": "coleco" "ColecoVision": "coleco",
"Commodore 64": "vice_x64"
} }
const button = document.createElement("button") const button = document.createElement("button")