mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Let same_cdi core handle zipped bios file directly (#881)
This commit is contained in:
parent
4951a28de0
commit
0bf944370c
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user