Merge pull request #650 from n-at/feature-disable-cue

ability to disable .cue file creation
This commit is contained in:
Ethan O'Brien 2023-08-30 14:56:16 -04:00 committed by GitHub
commit 6fe74642dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -863,7 +863,7 @@ class EmulatorJS {
} }
let resData = {}; 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]; 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) => { this.checkCompression(new Uint8Array(data), this.localization("Decompress Game Data"), (fileName, fileData) => {
if (fileName.includes("/")) { if (fileName.includes("/")) {

View file

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