mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
ability to disable .cue file creation
This commit is contained in:
parent
822a72a9b9
commit
56e14790f3
3 changed files with 3 additions and 2 deletions
|
@ -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("/")) {
|
||||||
|
|
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue