From 0bf944370c020f9877ca6701081a1963e160b8b0 Mon Sep 17 00:00:00 2001 From: pastisme <166672781+pastisme@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:28:57 -0500 Subject: [PATCH] Let same_cdi core handle zipped bios file directly (#881) --- data/src/emulator.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/src/emulator.js b/data/src/emulator.js index 8d3c8bf..7924bfe 100644 --- a/data/src/emulator.js +++ b/data/src/emulator.js @@ -782,6 +782,11 @@ class EmulatorJS { } this.textElem.innerText = this.localization("Download Game BIOS"); const gotBios = (data) => { + if (this.getCore() === "same_cdi") { + this.gameManager.FS.writeFile(this.config.biosUrl.split('/').pop().split("#")[0].split("?")[0], new Uint8Array(data)); + resolve(); + return; + } this.checkCompression(new Uint8Array(data), this.localization("Decompress Game BIOS")).then((data) => { for (const k in data) { if (k === "!!notCompressedData") {