MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / buildExtraFileSystems

Function buildExtraFileSystems

project/emscripten/boxedwine-shell.js:370–389  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

368 }
369 }
370 function buildExtraFileSystems(callback) {
371 let extraFSs = [];
372 if(Config.extraPayload.length > 0){
373 let uint8Array = getBase64Data(Config.extraPayload);
374 createFile("/", "overlay.zip", uint8Array);
375 callback();
376 }else if(Config.extraZipFiles.length > 0){
377 for(let i = 0; i < Config.extraZipFiles.length; i++) {
378 loadFile(Config.locateOverlayBaseUrl, Config.extraZipFiles[i], (uint8Array) => {
379 createFile("/", Config.extraZipFiles[i], uint8Array);
380 extraFSs.push(Config.extraZipFiles[i]);
381 if(extraFSs.length == Config.extraZipFiles.length) {
382 callback();
383 }
384 });
385 }
386 }else{
387 callback();
388 }
389 }
390 function initBrowserFilesystem(callback) {
391 console.log("Use Storage mode: "+Config.storageMode);
392 FS.mkdir(ROOT);

Callers 1

initialSetupFunction · 0.85

Calls 5

getBase64DataFunction · 0.85
createFileFunction · 0.85
callbackFunction · 0.85
loadFileFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected