Bill Currie
c2c3a62956
nuke Qexpand_squiggle. instead, expand ~ to $HOME on qfs initialization and
...
cache the value.
don't call Qopen directly in the engine. instead call QFS_Open (generic) or
QFS_WOpen (write only, zip flag).
rework QFS_NextFilename to use a dstring (avoiding a potential buffer
overflow), support 10000 files and work from the top-level fs_userpath
directory. adjust QFS_WriteFile and QFS_WriteBuffers etc to suit.
make sw32 screenshots actually get written.
hopefully everything gets written to the right places :)
2003-05-23 17:17:01 +00:00
Bill Currie
eb099ae0d3
make qf gcc 3.3 clean
2003-04-17 00:01:48 +00:00
Ragnvald Maartmann-Moe IV
5fb8aa07f3
Code style, people. Love it or leave it!
2003-03-21 21:25:44 +00:00
Bill Currie
d93fceea38
fix a snafu in SVC_DirectConnect related to info strings, make
...
Info_ParseString take (and pass on to Info_SetValueForStarKey) a flags arg
and simplify the flags handing in Info_SetValueForStarKey.
2003-02-19 17:39:21 +00:00
Bill Currie
f4fdbeee4d
make the low level network code and packet logging less incentuous
2003-02-10 21:41:22 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
ca4b3acd6c
big protototype cleanup. Now, except for a few cases, all non-static
...
prototypes are in headers files.
2002-11-05 19:12:51 +00:00
Bill Currie
9f7c669370
various win32 compile fixes for the latest mingw (not fully working due to
...
LPCWAVEFORMATEX)
2002-10-11 20:47:17 +00:00
Bill Currie
ec47e08e1c
go back to using QFile, quakeio.h and quakefs.h
2002-08-27 07:16:28 +00:00
Bill Currie
b5783866ad
fix model_t issues for solaris (now that I know which headers cause the
...
problem...:)
2002-08-09 02:44:23 +00:00
Bill Currie
1354975692
clean out some unneeded includes and fix up model_t for sun (again:P)
2002-08-08 22:24:02 +00:00
Ragnvald Maartmann-Moe IV
1478dcd9c9
Prune dead code.
2002-07-02 21:37:22 +00:00
Ragnvald Maartmann-Moe IV
3900c75cbb
Spelling correction in printf.
2002-06-17 05:40:56 +00:00
Bill Currie
6a5bbf6f0a
memory allocation checking cleanup
2002-05-14 06:37:28 +00:00
Bill Currie
44dcf74627
strip the \n from all(?) of the Sys_Error calls (Sys_Error itself will be
...
adding \n).
2002-05-14 06:12:29 +00:00
Bill Currie
9d0320cc89
various portability improvements
2001-11-18 23:40:01 +00:00
Bill Currie
54ddb94132
urk, I forgot Info_ParseString uses Hunk_TempAlloc :/
2001-11-05 17:19:26 +00:00
Bill Currie
6c2145f9b5
make work with the new info api and fix what looks to be a malloc bug
2001-11-05 17:09:27 +00:00
Bill Currie
dcd9b0040e
rewrite the info strings to use hash tables instead of a static string.
...
This required changes to the api (info_t instead of char *) but should be
a net gain in speed (not a lot, admittedly: it was pretty fast to begin
with, but this paves the way for some other changes I have in mind).
2001-11-04 07:50:39 +00:00
Adam Olsen
3bba5398ba
- audit malloc usage. now everything checks the return value :)
2001-10-24 22:50:06 +00:00
Bill Currie
b1f4a778f9
the rcsid commit from hell }:>
2001-09-28 06:26:31 +00:00
Bill Currie
e9cf5b4eba
include sys/types.h for freebsd
2001-09-07 04:41:13 +00:00
Adam Olsen
4deed9245a
- Add CACHE_WRITE_{,UN}LOCK macros, and calls to them in Cache_*. No
...
effect until other things are done.
- Make Qalloc treat no callback as a failed callback
- Add a Qstrdup
- Fix a memory leak in cl_slists.c
2001-08-29 09:14:18 +00:00
Ragnvald Maartmann-Moe IV
ade99607cc
header/whitespace sweep continues.
2001-08-28 23:05:45 +00:00
Bill Currie
b3d20d834a
fix for compiling under freebsd. thank's, stu
2001-08-07 17:43:49 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00
Chris Ison
3456b5f479
part 1 of slist fixup, added ping and game filtering, also fixed some potential bugs. flame me later
2001-06-17 08:14:22 +00:00
Chris Ison
a3d2d83e18
fixed master list to the 7 (known) working master
2001-06-12 23:53:58 +00:00
Chris Ison
3526371ff0
oops, forgot to remove debug code
2001-06-12 12:34:59 +00:00
Chris Ison
75fe232052
Sorted server list, sl_sortby 0 = by name, sl_sortby 1 = by ping
2001-06-12 12:31:01 +00:00
Chris Ison
5b16c38974
quick bug fix for slist update seg
2001-06-09 15:42:22 +00:00
Chris Ison
8d3247ff00
added set server name after refresh, and fixed slist update not resetting the list
2001-06-09 15:24:42 +00:00
Chris Ison
12ae6750af
moved slist stuff out of cl_main.c and into cl_slist.c, enabled getting server list from master servers. to switch between servers.txt list (default) and list of servers from master servers use slist switch
2001-06-09 09:12:24 +00:00
Bill Currie
6bf58ab1af
no header includes cvar.h now
2001-05-31 03:41:35 +00:00
Joseph Carter
05adfd0e53
quakefs.h -> vfs.h
...
quakeio.h -> vfile.h
More diff reduction between trunk and my VFS code. Also took the time to
put some headers in order and fix a few #include's pointed out by moving
things around a bit.
2001-05-30 04:34:06 +00:00
Joseph Carter
186d577818
s/QFile/VFile/g - makes my diffs much smaller and more manageable for the
...
VFS work.
2001-05-30 03:21:19 +00:00
Bill Currie
7f5d4cd7e9
clients now build (sdl, sgl, wgl), but don't link yet
2001-04-10 22:09:41 +00:00
Bill Currie
a96536c896
nuke commdef.h and clean up the results by putting its contents where they
...
belong.
also, merge model.h and friends (MINUS render.h). this needed moving efrags_t
from render.h to model.h.
2001-04-10 06:55:28 +00:00
Chris Ison
2ece48c535
alpha code for master server queries
2001-04-03 05:48:24 +00:00
Chris Ison
0e68cf838d
Added slist update and slist # (shows details)
2001-04-02 10:24:23 +00:00
Chris Ison
999b8c94ac
Start of console based server list
2001-04-01 22:09:12 +00:00
Bill Currie
cb5c262ffc
qtypes.h:
...
remove includes of qdefs.h and compat.h
pr_comp.h:
merge pr_comp.h from quake and qfcc, removing the copy in qfcc
cmdlib.[ch]:
nuke the endian code.
qendian.c:
initialise the LittleLong etc pointers at compile time rather than run
time
com.c (both nq and qw):
nuke the LittleLong etc init code
everything else:
fix up after the qtypes.h cleanup
2001-03-28 17:17:56 +00:00
Bill Currie
f78b973978
move the api headers into include/QF and clean up (most of) the resulting mess.
...
target specific files that I don't build won't compile yet. just put QF/
infront of the offending headers.
Also move ver_check into libqfutils
2001-03-27 20:33:07 +00:00
Chris Ison
69fd58944e
moved slist loading into cl_slist.c
2001-03-08 23:53:03 +00:00
Bill Currie
87854e1a0c
initial checkin of most recent newtree and nuq(?) source
2001-02-19 21:15:25 +00:00