home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
MODSUNKN.ZIP
/
GOSUB.C
< prev
next >
Wrap
Text File
|
1990-10-12
|
1KB
|
60 lines
First, go to BBS.C in void mainmenu and do this:
*/
void mainmenu()
{
char *s,*num,s1[100],s2[81]; /* <- add the *num */
int i,done1; /* add the done1 */
/*
Now go down further and add this case above case 'A':
*/
case '#':
do {
done1=0;
nl();
prt(2,"Go to which sub number? (?=List): ");
num=mmkey(0);
if (strcmp(num,"?")==0)
sublist();
for (i=0; i<32; i++)
if (strcmp(usub[i].keys,num)==0) {
cursub=i;
done1=1;
}
} while ((!hangup) && (!done1));
break; /* added to original mod */
/*
Now go down even farther to dlmainmenu() and do this:
*/
void dlmainmenu()
{
char *s,*num,s1[81],s2[81]; /* Again, add the *num */
int i,i1,abort,done1; /* Again, add the done1 */
/*
Now go down and add this case before case 'A':
*/
case '#':
do {
done1=0;
nl();
nl();
prt(2,"Go to which directory number? (?=List): ");
num=mmkey(1);
if (strcmp(num,"?")==0)
dirlist();
for (i=0; i<64; i++)
if (strcmp(udir[i].keys,num)==0) {
curdir=i;
done1=1;
}
} while ((!hangup) && (!done1));
break;