Skip to content

Commit

Permalink
fix: avoid double-fetching BIOS files
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmitz committed Oct 1, 2023
1 parent 4739da6 commit bfc5402
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,10 @@ var Module = null;
bios_files.forEach(function (fname, i) {
if (fname) {
var title = "Bios File ("+ (i+1) +" of "+ bios_files.length +")";
var url = get_bios_url(fname);
files.push(cfgr.mountFile('/'+ fname,
cfgr.fetchFile(title,
get_bios_url(fname))));
cfgr.fetchFile(title, url)));
already_fetched_urls.push(url);
}
});

Expand Down

0 comments on commit bfc5402

Please sign in to comment.