home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
ELRIC29.MOD
< prev
next >
Wrap
Text File
|
1990-02-02
|
3KB
|
98 lines
Welcome to Elric's mods #29. Does this one work? Has it been fully
tested and debugged? Probably not, so use at your own risk...
This is an attempt to fix a small problem. Some people have been
complaining about how somehow sometimes they would get log files that said
something to the effect of....
2022 User1 #227
2022 User2 #109
2022 pi #3.14159265359
2023 e #2.71828182846
As you can see, the floating point user numbers were a real problem...no, wait
that was humor...the problem was the mysterious non-updating caller number.
How many callers did you really have? Who knows? Who cares? Well, it seems
several people were upset, and someone actually got a response out of Mr. Bell
on the matter. Here's what he had to say...I don't have the exact quote,
but it was something to the effect of "well, I didn't save status.dat when
someone shrinks out, so it doesn't save anything like the current caller
number, so tough luck. Wait for 4.11". Well, if you're registered, and
you would like to fix this, here's how to do it.
/** this step is indeed a form step, much like a form letter **/
1. From DOS, in your dir where you keep your source....
PKZIP SOURCE *.c *.h
If you already have a source zip file, then
PKZIP -f source *.c *.h
This way you have a copy of everything before you screw it up with a bad mod.
If you decide to take the mod out, it's as easy as
PKUNZIP -x source
and hit Y to overwrite any files you changed.
/** we now resume our regularly scheduled mod with step 2.... **/
2. Load up shrink.c. This is the only thing we have to change, and
I promise it will be minimal..
Look down in the first 30 lines or so...a bunch of lines that say
extern int something;
extern char something else;
somewhere in those, add these 2 lines.
extern statusrec status;
extern configrec syscfg;
doesn't matter where, just somewhere before the first function.
3. Now look down for void save_state. Add these lines...
void save_state(char *s, int state,int ctc)
{
int f;
/** add from here down***/
int statusfile;
char s1[81];
sprintf(s1,"%s%s",syscfg.datadir,"STATUS.DAT");
statusfile=open(s1,O_RDWR | O_BINARY);
write(statusfile,(void *)(&status), sizeof(statusrec));
close(statusfile);
/** original code picks up here...**/
f=open(s,O_RDWR | O_BINARY | O_CREAT | O_TRUNC, S_IREAD | S_IWRITE);
if (f<0)
return;
That's it. It should work like a charm now...
/** hey, it's the form info file **/
As usual, I take no responsibility for hard drive crashes, death in the
family, or end of the world as we know it resulting from this mod.
It's your fault if you didn't back up the files before you made the mod.
It's your fault if you don't back up your ENTIRE hard drive AT LEAST once
a month.
It works on my system with Turbo C 2.0, WWIV 4.1, V20/8088, 640K/640EMS.
If you use this, the only payment I ask is that you send me a
note through WWIVNet to 1@8251 saying you are using it...not too much to
ask is it?
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/4800/9600/12,000/14,400 baud HST MNP5
Auto-validation of WWIV sysops on first call
Xmodem, Ymodem, DSZ Zmodem with retry, Ymodem-G
Lord Elric