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

Add support for passing drop-file path and COM/Socket handle on

command-line.
parent 96678349
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
/* */
/***************************************************************************/
#include"sockwrap.h"
#include"smurfdef.h"
#include"smurfdat.h"
#include"smurfver.h"
......@@ -135,8 +136,33 @@ char* argv[100];
__CNV__main();
exit(0);
}
if (argc > 1 && strnicmp(argv[1], "LOCAL", 5) == 0) {
od_control.od_force_local=TRUE;
if (argc > 1) {
int arg=1;
if(strnicmp(argv[arg], "LOCAL", 5) == 0) {
od_control.od_force_local=TRUE;
arg++;
}
if(argc >= arg) {
strcpy(od_control.info_path,argv[arg]);
if(isdir(argv[arg]))
strcat(od_control.info_path, DIRSEP_STR);
arg++;
}
if(argc >= arg) {
int type,len,got;
SOCKET sock;
#ifdef _WIN32
WSADATA crap;
WSAStartup(0x0202, &crap);
#endif
od_control.od_open_handle=atoi(argv[arg]);
sock=od_control.od_open_handle;
len=sizeof(type);
if((got=getsockopt(sock, SOL_SOCKET, SO_TYPE, (void *)&type, &len))==0 && type==SOCK_STREAM)
od_control.od_use_socket=TRUE;
}
}
#ifdef TODO_LOCAL_DISPLAY
__mess(5);
......
......@@ -52,6 +52,16 @@ Any checks or money orders MUST be addressed to 'CASH' or 'Laurence Maar'
o C:\BBS\SMURF\> smurf local o
o o
o o
o STARTING FROM THE BBS o
o ===================== o
o To start Smurf Combat as a door, use the folowing command-line: o
o C:\BBS\SMURF\> smurf [dropfile [handle]] o
o o
o If no dropfile is specified, it will be loaded from the current o
o directory. If no handle is specified, t will be read from the dropfile o
o (Currently, this is only available with door32.sys) o
o o
o o
o STARTING A NEW GAME (REROLL) o
o ============================ o
o Because i'm running outta time here, i'm NOT GOING TO TELL YOU HOW TO o
......
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