Commit graph

48 commits

Author SHA1 Message Date
Bill Currie
0142fc1a24 expand ~ for spefifying data directories.
Note: still needs to be autoconfiscated, but I'm not sure what direction to take there.
2000-04-27 00:37:57 +00:00
Bill Currie
e605302b38 autoconfiscate fs_basepath
--enable-basepath causes qf to look in ${prefix}/gqmes/quakeforge for the files
--with-basepath=path gives you more control
2000-04-25 12:31:03 +00:00
Bill Currie
6cdc6a95a9 fix a missing ) from debug output 2000-04-18 09:33:53 +00:00
Joseph Carter
3a8f38c217 New cvar fs_basepath replaces -basedir param. It's a CVAR_ROM so you can
only set it from the cmdline (you now CAN set it from the cmdline BTW!),
it defaults to the current directory if you don't.

New cvar fs_sharepath.  Defaults to fs_basepath->string and is changed in
the same manner.  If you do change it, files in gamedirs under it will be
used first with basepath's files overriding them.

This allows you to keep your paks in a read-only location (cdrom or unix
/usr/share) and still be able to override those files and save configs.
2000-04-18 09:24:29 +00:00
Joseph Carter
9993d2c301 r_part.c now contains full particle code for software, gl_rpart.c full
particle code for GL.
2000-04-16 14:26:53 +00:00
Zephaniah E. Hull
4ee2355a9e The sorting works perfectly now! 2000-04-02 12:13:19 +00:00
Jeff Teunissen
b619de9c05 Applied Thad Ward's patch to make win32 locase filenames. Also a few
cleanups, mostly whitespace.
2000-04-01 09:59:35 +00:00
Zephaniah E. Hull
955c3d03a2 Runtime fixes for the pak file handling, should not segfault anymore.. 2000-04-01 06:26:03 +00:00
Zephaniah E. Hull
a644fd8b84 Compile fixes, oops.. 2000-03-31 23:38:37 +00:00
Zephaniah E. Hull
2678aa601f Added sorting to the *.pak stuff..
Some other misc cleanups..
2000-03-31 22:46:39 +00:00
Dan Olson
c097e1a282 One last (hopefully) fix to "maplist" command.
It now lists pak names correctly as it searches them.
2000-03-31 20:14:14 +00:00
Bill Currie
549af06fa9 Applied CoderJoe's (Thad Ward) win32 patchs. compiles, links and runs.
BTW, win32 targets now use opendir etc.
2000-03-31 05:58:16 +00:00
Bill Currie
4d1176e8c5 add support for gziped maps (*.bsp.gz) and pak files in general to COM_MapList_f 2000-03-31 04:46:53 +00:00
Dan Olson
a8d9ff049c Added "maplist" command 2000-03-31 00:49:19 +00:00
Joseph Carter
6caab157b1 Almost there... 2000-03-24 13:34:14 +00:00
Marcus Sundberg
674ddcffe5 The big whitespace cleanup. ;-)
Removed trailing whitespace from code lines.
2000-03-19 15:59:51 +00:00
Anton E. Gavrilov
1b35b7ab83 Win32 compiles now (opendir yet to be done...) 2000-03-11 00:46:46 +00:00
Bill Currie
bcd302a948 common/common.c common/common.h qw_client/cl_parse.c qw_server/sv_main.c:
handle escape chars better
common/quakefs.c:
	check the return value of opendir
2000-03-08 04:17:12 +00:00
Zephaniah E. Hull
8ce43b2ec1 Header file cleanup, so we can build more stuff which is completely common!
*.pak support!
2000-03-08 01:12:26 +00:00
Eric Windisch
7c84bd2f4f Fixed Rules.mk.in, it was causing a break in the compile in the linking of quakefs.c. The gl* files are fixes for stuff inside of #ifdef QUAKE2. Quakefs.c has very minor if any changes. Gl_notes has a few updates for new features. 2000-03-06 19:58:03 +00:00
Joseph Carter
75001e947c I think this works, but maybe not.. skins will be very broken if I didn't
but I'll undo this mess if that happens.
2000-03-04 16:43:53 +00:00
Eric Windisch
8b55f440df A few fixes to my previous patches. Including the small compile-breaker that I accidently threw in by putting an important global variable in a rarely used define (generations). 2000-03-04 02:39:12 +00:00
Eric Windisch
45ccae6ba7 Made fixes to quakefs.c, unzip.c, and unzip.h; compiles for me, and should for you too. Unzip.c was surprisingly broken; quakefs.c was mildy broken but now fixed (GENERATIONS code). Also an "interface" change, no longer searches for .pk3 files but rather .qz (quake pack) as per Knghtbrd's suggestion. 2000-03-04 01:55:01 +00:00
Joseph Carter
8b18f9d56b A little cleanup...
S_Init() is now where it belongs--outside of VID_Init().  I think I did
manage to update every target.  If I missed one, kill the sound.h include
and remove S_Init() from VID_Init().

New Cvar: r_sky, defaults to 0, turn it on if you want to use skyboxes.
Cvar r_skyname can actually be used now I _think_, need another skybox
to test it.  Quake2000's instructions were used in the skybox stuff but,
as all know by now, our tree is so different from anyone else's that I had
to redo a number of things.  But thanks all the same--cut the time spent
debugging it in half.  I also want to thank whoever did the night skybox
on the MegaTF page I used to test.  Looks great on start map!

New GL-specific Cvar: r_conspin, defaults to 0.  Turn it on.  You can turn
it off too.  Shamelessly ripped from QER.
2000-03-02 19:57:24 +00:00
Zephaniah E. Hull
754ab06b44 Fixing the new cvar mess... 2000-02-27 18:51:50 +00:00
Dan Olson
106dada0b2 Non functional cvar code. Compiles, but won't run. 2000-02-27 07:13:32 +00:00
Loring Holden
8668430a36 quakefs.c - added #include "config.h" so unistd.h would be included properly
vid_sunx.c - do not define x_disp and x_win as static, removed unneeded
variables, took on IN_* functions
2000-02-21 18:06:10 +00:00
Dan Olson
8ac1385c9f Jason Nelson's patch for fixing Win32 targets 2000-02-20 21:19:50 +00:00
Bill Currie
592b054f82 common/gl_vidglx.c:
some tweeks in an attempt to improve shutdown. NOT the final say
qw_server/sv_ccmds.c:
	comment correction
common/quakefs.c uquake/host_cmd.c:
	knghtbrd's gamedir patch, plus some Hunk_Alloc -> Z_Malloc changes.
2000-02-20 04:20:00 +00:00
Eric Windisch
17eb4d012c Some changes to quakefs.c for the pakzip (formerly pak3) support.
Found and deleted unused, obsolete functions in r_surf.c
2000-02-14 03:08:14 +00:00
Bill Currie
7d5b301d80 common/quakeio.c:
support gzipped files
common/quakefs.c:
qw_client/cl_parse.c:
qw_server/sv_ccmds.c:
uquake/host_cmd.c:
uquake/menu.c:
	use "z" in mode flags when reading files
uquake/Makefile.in:
	take cl_ents.c out again (too much work atm to get it to compile)
2000-02-08 20:59:36 +00:00
Bill Currie
a078544d38 Replaced every single fscking FILE and gzFile (except in quakeio.*) with QFile
and fixed up as many f* and gz* calls as gcc found (and, where sensible, grep)

Unfortuanatly, demos are broken again.
2000-02-08 07:23:09 +00:00
Bill Currie
edbb589045 merge qw_client/cl_main.c and uquake/cl_main.c into common/cl_main.c
For the rest, convert all refs to FILE and gzFile to QFile, and similar for
file functions (eg fprintf, fgets, fread, etc)
2000-02-08 05:06:58 +00:00
Bill Currie
0a46c1d979 configure.in:
make zlib enabled by default
common/nozip.h:
	swap the size and count params to f{read,write} to prevent demo code
	breaking
common/quakefs.c:
	if zlib is unavailable, there is no point in supporting the .gz
	extension
2000-02-03 21:44:46 +00:00
Eric Windisch
9e47e221b6 Changed the name of the pak3 code to pakzip. Also a few assorted, trivial code cleanups.
-- Eric Windisch
2000-02-03 21:13:23 +00:00
Joseph Carter
c0dc03a8ff Other minor changes for uquake, nothing visible 2000-02-03 20:27:25 +00:00
Jeff Teunissen
9a9384f6a9 Cmd_InitFilesystem(): add -game support to the common cmd.c, #ifdef
QUAKEWORLD the Cmd_AddGameDirectory("%s/qw", ... ) call.
2000-02-03 11:29:22 +00:00
Loring Holden
8349f3e59f Various changes to get build to work when zlib isn't available...
Various changes to get rid of warnings under AIX, Irix, Linux & Solaris...
2000-02-03 08:46:52 +00:00
Bill Currie
e9a2a3fab5 Add gzip support, add -Werror to gcc CFLAGS, clean up misc warnings.
NOTE: demos are broken for gzipped demo files (possibly normal ones too, not
yet tested).
2000-02-03 00:34:12 +00:00
Jeff Teunissen
02dab8f828 Re-added Hipnotic/Rogue support to filesystem code. Cleaned up
COM_LoadGameDirectory().
2000-02-02 06:49:43 +00:00
Joseph Carter
7bc3e61e27 This isn't funny.. Typo fixed. 2000-02-02 05:33:23 +00:00
Joseph Carter
b210bffd3e Note to self: ...test before you commit, test before you commit... 2000-02-02 05:10:56 +00:00
Joseph Carter
0393b88e5f breaks are evil outside switch's, the for loop has an exit condition... 2000-02-02 05:07:29 +00:00
Eric Windisch
b1af7c3e37 Fixed bug that caused:
Error: Not enough RAM allocated.  Try starting using "-mem 16" or higher
Quakefs.c
2000-02-02 05:01:07 +00:00
Eric Windisch
668fcd2143 Minor changes to quakefs.c; if generations and experimental are defined all files ending in .pak3 are loaded. 2000-02-01 05:13:30 +00:00
Bill Currie
19e937518c can find "wadfile".gz as well as just "wadfile". NOTE: .gz files don't acutally
work yet.
2000-01-30 22:46:30 +00:00
Bill Currie
6f213c8342 common/quakefs.c:
make pak3 support dependent on /both/ _EXPERIMENTAL_ and GENERATIONS
qw_client/Makefile.in:
	move gl files into cleint/gl so thay can have their own build rules
	conditionally added -lasound to LIBS if building for ALSA
2000-01-29 02:31:47 +00:00
Zephaniah E. Hull
f18b3bcf02 HUGE changes..
Basicly, sound_lib.a is built, and is compiled into the clients..
Note, uquake is SERIOUSLY FSCKED..
2000-01-27 17:06:02 +00:00