Joseph Carter
e9766bdd4a
fs_gamebase cvar added, defaults to base or id1, depending on newstyle's
...
setting. It's a CVAR_ROM, so the only place you can change it is from the
cmdline or global config file.
2000-05-20 01:59:54 +00:00
Thad Ward
7f891971c7
moved the location of the #include for limits.h, so MSVC would be able to build the tree.
2000-05-12 04:31:35 +00:00
Bill Currie
10224b1d00
delay setting the CVAR_ROM bit for fs_*path so they can be overridden by the command line
2000-05-11 11:43:49 +00:00
Bill Currie
011ec8bd95
speed up pak seaching when .gz endings are supported. this still needs to be re-coded as doing a linear search is just borked. I'm not sure if I should sort the file entries in memory and use bsearch (probly easier) or implement a hash table for each pak file, but something needs to be done. At least HAS_ZLIB no longer doubles search time :)
2000-05-05 01:24:05 +00:00
Bill Currie
ecba3b9f42
put #include <limits.h> in for other OSes that don't automaticly include it in one of the other headers.
2000-05-01 08:57:11 +00:00
Bill Currie
85254360f4
fix a really nasty bug where downloads were going to the wrong place. there may be more fixes needed so qf copes with the new fs_basepath, and esp ~.
2000-04-30 10:50:24 +00:00
Tony Tyson
341eacbc53
Replace alloca with malloc for win32 builds.
2000-04-28 02:52:00 +00:00
Bill Currie
2e61dac258
casue autoexec.cfg to be executed in the new gamedir (after frontend.cfg)
...
also, clean up quakefs.c a little (minor)
2000-04-27 10:56:31 +00:00
Bill Currie
e94c1488ac
shuffle things around so gamedir works early on in the piece. Also put it into qw-client in the first place. grr Unfortunatly, doesn't fix our class change problem :(
2000-04-27 09:25:38 +00:00
Bill Currie
3c8ff479a3
oop, forgot this for avoiding win32 problems
2000-04-27 07:15:51 +00:00
Bill Currie
9afa18b5f8
!lart taniwha for forgetting to make clean after changing headers
2000-04-27 04:55:43 +00:00
Bill Currie
ede51b8e01
hopefully, this will allow the windows targets to build
2000-04-27 01:25:20 +00:00
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