Commit graph

42 commits

Author SHA1 Message Date
Jeff Teunissen
54e2a4d9d3 Okay, the big whitespace reformat. There is some silliness (case
statements, variable declarations), but all in all it's not bad.
2000-12-08 06:51:37 +00:00
Bill Currie
b34504057c char *buf; strn.* (..., sizeof(buf) ...) doesn't work so well :/ 2000-12-05 16:41:28 +00:00
Bill Currie
eae11661e4 strncat parameter audit. Unfortunatly, strncat is counter-intutite: the n in
strncat is not the maximum length of the destination string, but of the SOURCE
string, thus strncat (dest, src, sizeof (dest)) is incorrect. It should be
strncat (dest, src, sizeof (text) - strlen (dest)). Even then, no terminating
nul will be written if src is too long, but at least it won't crash the stack:)
2000-12-05 16:04:12 +00:00
Zephaniah E. Hull
66e0e31b57 strcat -> strncat
sprintf -> snprintf

AKA, really big buffer overflow security fixes.

More to come, geez we have holes everywhere.
2000-12-05 11:08:30 +00:00
Bill Currie
42b3a83bd9 move host_parms from quakefs.c to somewhere a little more sensibe. 2000-11-29 23:26:45 +00:00
Forest Hale
8b04d3e8e7 taniwha removed host_parms, which was necessary to compile... 2000-11-28 11:25:06 +00:00
Bill Currie
d74ab2865a basedir is nolonger mentioned anywhere in the source. It's gone, gone, gone,
gone (and it better stay gone).
2000-11-27 23:03:01 +00:00
Forest Hale
9ce5fc95df quakeparms_t audit.
changed all parms references to directly access host_parms to improve readability, and removed unused basedir references. (all remaining fields in quakeparms_t deserve to be there)
2000-11-27 13:17:48 +00:00
Forest Hale
b2fa746f90 redid the way -basedir works, implemented it in the filesystem init code, and it works now (the previous windoze support was broken because the basedir parm was not being used anyway) 2000-11-27 10:55:27 +00:00
Forest Hale
0b120aecbc __const was not defined on win32 2000-11-19 23:47:56 +00:00
Zephaniah E. Hull
8f1ff1bddc A few compile fixes.
And of course the very slight rework of the input system, at least
in_x11 gets shifts right for different keymaps.

Oh, by the way, ALL other input targets are broken in a very 'will not
compile' way.
2000-11-17 21:23:26 +00:00
Bill Currie
ef28d1b19f fix a bug where maplist would seg on an empty map. d'oh :/ 2000-11-02 21:14:43 +00:00
Bill Currie
2fc438ca13 hopefully fix Fragman's compilation problems on Mandrake 6.1 2000-11-01 06:31:29 +00:00
Zephaniah E. Hull
13bd5ce012 The init sequence cleanup!
Also broke up client.h into a lot of smaller headers.
Oh, software rendering works again.

And yes, this does hit a hell of a lot of files.
2000-10-29 15:35:24 +00:00
Bill Currie
d295f183ba remove va from commdef.h and fix the consequences 2000-10-21 07:34:56 +00:00
Jeff Teunissen
8138b9c4e8 Fix bug in -game parsing 2000-10-11 09:50:13 +00:00
Bill Currie
f5b74e900c silence COM_FOpenFile when the file can't be opened unless developer is set.
It is the caller's responsibility to report failure.
2000-10-10 23:19:53 +00:00
Jeff Teunissen
dd7333a2da cd_linux.c: whitespace.
quakefs.c: -game n[,n ...] support.
snd_oss.c: Compilation support for OSS on BSD systems.
2000-10-10 21:45:07 +00:00
Bill Currie
4962c3bf0b port over nuq's modified filesystem init code. no longer creates dirs when
fs_userpath is ".".
2000-10-10 19:57:01 +00:00
Bill Currie
015c3ace6c fix for 40 column output. forgot that 10*4=40 and \n after 40 chars doesn't do
what was wanted.
2000-10-02 17:50:02 +00:00
Bill Currie
a72953290b Pretty print the maplist. MUCH nicer output (sorted columns) 2000-10-02 17:24:18 +00:00
Bill Currie
677b7de94d %s/HAS_ZLIB/HAVE_ZLIB/g 2000-09-30 05:56:00 +00:00
Bill Currie
1aa9084aa9 add support for COMPRESSED downloads!!! Of course, both client and server must
both support this. The client tells the server it can support compressed
downloads by setting the z flag in the *cap userinfo. If the server detects
that the client supports compression, and the file to be downloaded is
compressed (more accurately, has the .gz extension), the server sends a special
download packet with a size of -2 (-1 indicates error),, percent of 0, followed
by the new name of the file (eg maps/foo.bsp.gz for maps/foo.bsp). The client
WILL NOT accept a new filename that doesn not match the old name for the length
of the old name. The client also will not accept a new name if there are . or
.. path components. If the client rejects the new name, it prints a warning
message and aborts that download.
2000-09-28 06:11:55 +00:00
Bill Currie
86f87122c0 zlib support (gzipped pack contents). if you have a probelm with gzgets, you
have 3 choices: remove /usr/X11R6/lib/libz.a, --diable-zlib, or fix configure.
I do intend on fixing it myself.
2000-09-27 19:44:26 +00:00
Zephaniah E. Hull
750457b368 Clean up after myself in the Z_* purge.. 2000-06-29 23:30:21 +00:00
Zephaniah E. Hull
29ef95a9b5 The end of Z_*!!
This after the Z_* stuff hit my profiling list as a top user..
2000-06-29 05:46:15 +00:00
Loring Holden
63dccb8968 in_x11.c - always define in_dgamouse, so it can be false when there is no DGA
quakefs.c - include strings.h for strcasecmp() under AIX
2000-06-01 03:37:48 +00:00
Joseph Carter
efb2d99e22 some oldtree cruft for rogue/hipnotic removed (we'll support them in a
very different way than did Id Software did later on, it'll be a major
improvement, that's for sure..)

fs_basegame Cvar created, defaults to whatever you selected in config.h,
most likely id1.
2000-05-29 12:45:05 +00:00
Jeff Teunissen
dc42c03c5b The proper solution to fs_sharepath and fs_userpath. 2000-05-24 20:03:49 +00:00
Thad Ward
b5e36c7149 commit changes for dabb, since he's having trouble with sourceforge:
win32 requires a call to setmode(), since it doesn't seem to do the mode change in fdopen properly.
also removed some "z" modes, since someone forgot to when removing the Qfile stuffs
2000-05-24 19:19:08 +00:00
Joseph Carter
28d0df55d3 fs_userpath is now . like it SHOULD be. Why? Because despite the unix
way of doing things, every single person who has tried newtree reports it
as "broken" because it can't find their pak files.

Least surprise.
2000-05-24 05:47:58 +00:00
Bill Currie
e98edd5f5f revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
Bill Currie
b26d6672ae fix what the previous checkin broke:) thanks for the suggestion, Deek. 2000-05-23 21:37:55 +00:00
Bill Currie
92009aae22 bah, turns out COM_CreatePath was designed that way. my bad :/ 2000-05-23 21:29:47 +00:00
Bill Currie
8ff75f94dc fix some problems with directories being created in the wrong places or not at all (caused by fs_userpath not being used when it should) 2000-05-23 01:44:20 +00:00
Joseph Carter
3d59dfed98 Before I can fix the (MANY!) problems with newtree, I have to fix the
little problem of mixed QFile and FILE.  Since we're not using ZLib in
this tree, QFile makes no real sense.  That didn't fix the real problem
I am having though.
2000-05-22 21:16:22 +00:00
Joseph Carter
fa7a4882ac *sigh* 2000-05-22 07:10:16 +00:00
Thad Ward
1cb980a02e removed a silly #else case on an ifdef 2000-05-22 07:07:01 +00:00
Jeff Teunissen
c40d97b99c s/fs_basedir/fs_userdir/g 2000-05-21 20:28:44 +00:00
Marcus Sundberg
a1c3030387 Updated old QuakeForge cruft to newtree style. Include win32/fnmatch.h if we don't have fnmatch.h 2000-05-21 20:10:49 +00:00
Bill Currie
3594de9738 command line now overrides what's in the config file 2000-05-21 10:08:27 +00:00
Bill Currie
68ca31e417 port in q* from OT, and split of other things in prep for removing common.*
The use of these files isn't being committed just yet.
2000-05-20 09:42:02 +00:00