Skip to content

Commit 53a1dfc

Browse files
committed
improve the auto mode
the part of using dosbox after msdos
1 parent e427275 commit 53a1dfc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/MSDOS-player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class MSDOSplayer {
8787
else {
8888
let box = new DOSBox();
8989
if (runordebug) {
90-
box.openDOSBox(conf, 'T.EXE\n' + conf.boxruncmd);
90+
box.openDOSBox(conf, 'T.EXE' + conf.boxruncmd);
9191
}
9292
else {
9393
box.openDOSBox(conf, debug);

src/configration.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ export class Config {
107107
let command: string = ' ';
108108
switch (this._BOXrun) {
109109
case "keep": command = ' '; break;
110-
case "exit after run": command = 'exit'; break;
111-
case "pause then exit after run": command = 'pause \n exit'; break;
110+
case "exit": command = '\n exit'; break;
111+
case "pause":
112+
default: command = '\n pause \n exit'; break;
112113
}
113114
return command;
114115
}
@@ -120,7 +121,8 @@ export class Config {
120121
switch (this._BOXrun) {
121122
case "keep": param = 'k'; break;
122123
case "exit": param = 'e'; break;
123-
case "pause": param = 'p'; break;
124+
case "pause":
125+
default: param = 'p'; break;
124126
}
125127
return param;
126128
}

0 commit comments

Comments
 (0)