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

Function initialSetup

project/emscripten/boxedwine-shell.js:452–474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

450 Module["removeRunDependency"]("setupBoxedWine");
451 }
452 var initialSetup = function(){
453 console.log("running initial setup");
454 setConfiguration();
455 if (Config.emEnvProps.length > 0) {
456 Config.emEnvProps.forEach(function(prop){
457 ENV[prop.key] = prop.value;
458 });
459 }
460 Module["addRunDependency"]("setupBoxedWine");
461 initBrowserFilesystem(() => {
462 spinnerElement.style.display = '';
463 spinnerElement.hidden = false;
464
465 buildExtraFileSystems(() => {
466 buildAppFileSystem(() => {
467 loadFile(Config.locateRootBaseUrl, Config.rootZipFile, (rootZipfileBytes) => {
468 createFile("/", Config.rootZipFile, rootZipfileBytes);
469 buildBrowserFileSystem();
470 });
471 });
472 });
473 });
474 }
475 function getEntriesAsPromise(item, exeFiles, allFiles, firstCall) {
476 return new Promise((resolve, reject) => {
477 if(firstCall){

Callers

nothing calls this directly

Calls 8

setConfigurationFunction · 0.85
initBrowserFilesystemFunction · 0.85
buildExtraFileSystemsFunction · 0.85
buildAppFileSystemFunction · 0.85
loadFileFunction · 0.85
createFileFunction · 0.85
buildBrowserFileSystemFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected