Skip to content
Snippets Groups Projects
Commit 4c7f9081 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If sbbs is configured with "NO_DOS" option, "exec" will assume native program

<@Deuce> Filenames are always assumed to be DOS programs, despite not being able to run them.
<nelgin> If sbbs was smart, it would know that if it's not a dos program then to use jsexec or whatever.

There: sbbs is now more smarter
parent 7189b366
No related branches found
No related tags found
No related merge requests found
......@@ -224,8 +224,12 @@ function str_cmds(str)
if(bbs.check_syspass()) {
str=str.substr(4);
str=get_cmdline(str);
if(str)
bbs.exec(str,EX_STDIO);
if(str) {
var ex_mode = EX_STDIO;
if(bbs.startup_options & BBS_OPT_NO_DOS)
ex_mode |= EX_NATIVE;
bbs.exec(str, ex_mode);
}
}
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment