Let same_cdi core handle zipped bios file directly (#881)
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled

This commit is contained in:
pastisme 2024-08-21 20:28:57 -05:00 committed by GitHub
parent 4951a28de0
commit 0bf944370c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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