home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
ELRIC5.MOD
< prev
next >
Wrap
Text File
|
1990-04-21
|
3KB
|
73 lines
Welcome to the fifth in the series of Lord Elric's mods. This one fixes a bug
in WWIV in the menus.
==============================================================================
Here's the problem. Let's assume you are still holding over old files from
old versions of WWIV 4.05 or so, and you still have a file called MENUS40.MSG
for all your 40 column commodore users. Now, that's really considerate of you
if you have it, but what you don't know is that really screws your default
MENUSANS.MSG file up. Here's why it does it, and how to fix it.
/** If you are using 4.11, there is no need to do this, Wayne Bell has
fixed it **/
First, load up Turbo C, and call up SYSOPF1.C scan down to
void read_new_stuff()
Now, add these two lines, and change one line a little further down...
read_in_file("MENUS.MSG",(menus),30);
read_in_file("HELP.MSG",(helps),50);
for (i=0; i<30; i++) {
menus1[i].stored_as=0L;
menus1[i].storage_type=255; /* add me */
menus2[i].stored_as=0L; /* add me */
menus2[i].storage_type=255;
}
strcpy(s,syscfg.gfilesdir);
strcat(s,"MENUSANS.MSG");
if (exist(s))
read_in_file("MENUSANS.MSG",(menus1),30);
strcpy(s,syscfg.gfilesdir);
strcat(s,"MENUS40.MSG");
if (exist(s))
read_in_file("MENUS40.MSG",(menus2),30); /* change this to (menus2) */
/* from (menus1) */
if (csn!=NULL)
farfree(csn);
if (cnn!=NULL)
farfree(cnn);
Now, why things get all screwed up. Well, as for the two lines you added, I
don't know why they weren't there, I suppose the BBS was just supposed to
assume they got initialized too...
As for the line you changed, it had to be a typo. The way the menus work is
that there is an array for each type of menus. The array contains pointers
into a file which tells where in the file the menu starts. The problem is,
according to the code, it reads in the info on MENUSANS.MSG in menus1, then it
reads in the info on MENUS40.MSG on top of them. So, if you have a transfer
menu for both formats, neither pointer is set. Menus2 points to who knows what,
and menus1 points to the right place in MENUS40.MSG, which doesn't help it in
searching MENUSANS.MSG. Anyway, that doesn't really matter, all that matters
is that you get it fixed.
Well, anyway, you can go ahead and compile it now, and get rid of the bug.
If you have any problems, you can reach me through WWIV-Net, 1@8251, or call
my BBS.
The Kingdom of Melnibone
812-877-3488 24 Hrs a day
3/12/2400 baud
Auto-validation of WWIV sysops on first call
Xmodem, Ymodem, Zmodem, DSZ Zmodem with retry, Jmodem protocols supported
Lord Elric