Fixed Automatically start DOS emulation toggle.
This commit is contained in:
parent
2e20f3a6e6
commit
3563b34aaa
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user