There was an error while loading. Please reload this page.
1 parent ce3c099 commit 39e8cbaCopy full SHA for 39e8cba
src/ASM/emulator/auto-mode.ts
@@ -15,11 +15,12 @@ export class AutoMode implements EMURUN {
15
this._dosbox = new DOSBox(conf);
16
this._msdos = new MsdosPlayer(conf);
17
}
18
- prepare(opt?: ASMPREPARATION): boolean {
+ async prepare(opt?: ASMPREPARATION): Promise<boolean> {
19
this.copyUri = this._msdos.copyUri;
20
- const output = this._dosbox.prepare(opt) && this._msdos.prepare(opt);
+ const box = await this._dosbox.prepare(opt);
21
+ const player = this._msdos.prepare(opt);
22
this.forceCopy = this._msdos.forceCopy || this._dosbox.forceCopy;
- return output;
23
+ return box && player;
24
25
openEmu(folder: Uri): Promise<unknown> {
26
return this._dosbox.openEmu(folder);
0 commit comments