Let same_cdi core handle zipped bios file directly

This commit is contained in:
pastisme 2024-08-21 10:10:38 -05:00 committed by pastisme
parent 4951a28de0
commit 7e7db78dff

View file

@ -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") {