ability to disable .cue file creation

This commit is contained in:
Alexey Nurgaliev 2023-08-30 21:42:50 +03:00
parent 822a72a9b9
commit 56e14790f3
3 changed files with 3 additions and 2 deletions

View file

@ -863,7 +863,7 @@ class EmulatorJS {
}
let resData = {};
const needsCue = (["mednafen_psx", "mednafen_psx_hw", "mednafen_pce"].includes(this.getCore()));
const needsCue = (["mednafen_psx", "mednafen_psx_hw", "mednafen_pce"].includes(this.getCore())) && !this.config.disableCue;
const altName = this.config.gameUrl.startsWith("blob:") ? (this.config.gameName || "game") : this.config.gameUrl.split('/').pop().split("#")[0].split("?")[0];
this.checkCompression(new Uint8Array(data), this.localization("Decompress Game Data"), (fileName, fileData) => {
if (fileName.includes("/")) {

File diff suppressed because one or more lines are too long

View file

@ -79,6 +79,7 @@
config.backgroundColor = window.EJS_backgroundColor;
config.controlScheme = window.EJS_controlScheme;
config.threads = window.EJS_threads;
config.disableCue = window.EJS_disableCue;
if (typeof window.EJS_language === "string" && window.EJS_language !== "en-US") {
try {