mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
Let same_cdi core handle zipped bios file directly (#881)
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled
Some checks failed
Make Latest Folder On EmulatorJS CDN / run (push) Has been cancelled
This commit is contained in:
parent
4951a28de0
commit
0bf944370c
1 changed files with 5 additions and 0 deletions
|
@ -782,6 +782,11 @@ class EmulatorJS {
|
||||||
}
|
}
|
||||||
this.textElem.innerText = this.localization("Download Game BIOS");
|
this.textElem.innerText = this.localization("Download Game BIOS");
|
||||||
const gotBios = (data) => {
|
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) => {
|
this.checkCompression(new Uint8Array(data), this.localization("Decompress Game BIOS")).then((data) => {
|
||||||
for (const k in data) {
|
for (const k in data) {
|
||||||
if (k === "!!notCompressedData") {
|
if (k === "!!notCompressedData") {
|
||||||
|
|
Loading…
Reference in a new issue