Skip to content

Commit 39e8cba

Browse files
committed
fix: auto: add missed await
1 parent ce3c099 commit 39e8cba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ASM/emulator/auto-mode.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ export class AutoMode implements EMURUN {
1515
this._dosbox = new DOSBox(conf);
1616
this._msdos = new MsdosPlayer(conf);
1717
}
18-
prepare(opt?: ASMPREPARATION): boolean {
18+
async prepare(opt?: ASMPREPARATION): Promise<boolean> {
1919
this.copyUri = this._msdos.copyUri;
20-
const output = this._dosbox.prepare(opt) && this._msdos.prepare(opt);
20+
const box = await this._dosbox.prepare(opt);
21+
const player = this._msdos.prepare(opt);
2122
this.forceCopy = this._msdos.forceCopy || this._dosbox.forceCopy;
22-
return output;
23+
return box && player;
2324
}
2425
openEmu(folder: Uri): Promise<unknown> {
2526
return this._dosbox.openEmu(folder);

0 commit comments

Comments
 (0)