Fixed Automatically start DOS emulation toggle.

This commit is contained in:
Ben Garrett 2021-06-17 18:24:55 +10:00
parent 2e20f3a6e6
commit 3563b34aaa
2 changed files with 20 additions and 10 deletions

View File

@ -8,6 +8,7 @@
- Renamed Hardware tab headers to improve their clarity.
- Replaced two of the sample demos to better show off the variety of emulated hardware.
- Fixed broken SVGA Graphic option, `dosmachine=svga`.
- Fixed broken _Automatically start DOS emulation_ option.
### v1.60

View File

@ -551,20 +551,28 @@ window.Module = null;
fetch({
title: `WASM Binary`,
url: gameData.emulatorWASM,
}).then((binary) => {
gameData.wasmBinary = binary;
})
.then((binary) => {
gameData.wasmBinary = binary;
})
.then(() => {
Promise.all(
gameData.files.map((f) => {
if (!f) return null;
if (!f.file) return null;
if (!f.drive) return null;
return fetch(f.file).then(mountAt(f.drive));
})
).then(resolve, reject);
console.log(
`%cDOSee`,
`color:dimgray;font-weight:bold`,
`loading WASM binary complete`
);
})
);
};
wasm();
Promise.all(
gameData.files.map((f) => {
if (!f) return null;
if (!f.file) return null;
if (!f.drive) return null;
return fetch(f.file).then(mountAt(f.drive));
})
).then(resolve, reject);
});
});
}
@ -613,6 +621,7 @@ window.Module = null;
// so let's map the prefixed versions to the correct function.
canvas.requestPointerLock = getPointerLockEnabler(canvas);
moveConfigToRoot(gameData.fileSystem);
console.log(gameData);
Module = initializeModule(
gameData.emulatorArguments,
gameData.fileSystem,