Skip to content
Snippets Groups Projects
Commit e73d1030 authored by deuce's avatar deuce
Browse files

Modify how Line1 is generated for door.sys files generated for native

executables.
If "Intercept Standard I/O" is enabled, Line1 becomes:
COM0:STDIO
If not, Line1 becomes:
COM0:SOCKET<Socket Handle>
ie:
COM0:SOCKET54

Currently, this is #ifdef'ed out since I'd like DMs approval before I do
this.
parent 59f4fa5d
No related branches found
No related tags found
No related merge requests found
...@@ -492,6 +492,31 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft ...@@ -492,6 +492,31 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
if(tleft>0x7fff) /* Reduce time-left for broken 16-bit doors */ if(tleft>0x7fff) /* Reduce time-left for broken 16-bit doors */
tleft=0x7fff; /* That interpret this value as a signed short */ tleft=0x7fff; /* That interpret this value as a signed short */
#if 0
if(misc&XTRN_NATIVE) {
if(misc&IO_INTS) {
strcpy(str,"COM0:STDIO\n");
}
else {
sprintf(str,"COM0:SOCKET%d\n",
#ifdef __unix__
client_socket
#else
client_socket_dup
#endif
);
}
}
else {
sprintf(str,"COM%d:\n"
,online==ON_REMOTE ? cfg.com_port:0); /* 01: COM port - 0 if Local */
}
#else
sprintf(str,"COM%d:\n"
,online==ON_REMOTE ? cfg.com_port:0); /* 01: COM port - 0 if Local */
#endif
lfexpand(str,misc);
write(file,str,strlen(str));
/* Note about door.sys, line 2 (April-24-2005): /* Note about door.sys, line 2 (April-24-2005):
It *should* be the DCE rate (any number, including the popular modem It *should* be the DCE rate (any number, including the popular modem
DCE rates of 14400, 28800, and 33600). However, according to Deuce, DCE rates of 14400, 28800, and 33600). However, according to Deuce,
...@@ -500,8 +525,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft ...@@ -500,8 +525,7 @@ void sbbs_t::xtrndat(char *name, char *dropdir, uchar type, ulong tleft
changing this value to the DTE rate until/unless some other doors changing this value to the DTE rate until/unless some other doors
have an issue with that. <sigh> have an issue with that. <sigh>
*/ */
sprintf(str,"COM%d:\n%lu\n%u\n%u\n%lu\n%c\n%c\n%c\n%c\n" sprintf(str,"%lu\n%u\n%u\n%lu\n%c\n%c\n%c\n%c\n"
,online==ON_REMOTE ? cfg.com_port:0 /* 01: COM port - 0 if Local */
,dte_rate /* was cur_rate */ /* 02: DCE rate, see note above */ ,dte_rate /* was cur_rate */ /* 02: DCE rate, see note above */
,8 /* 03: Data bits */ ,8 /* 03: Data bits */
,cfg.node_num /* 04: Node number */ ,cfg.node_num /* 04: Node number */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment