Bill Currie
f4042c5b91
Make the bsp disk data structures type size independent.
...
However, this assumes float is always 32 bits.
Also use size_t for the *size fields in bsp_t and clean up the mess.
2010-10-13 20:52:05 +09:00
Bill Currie
42faad9015
Move expand_squiggle() from quakefs to sys, and rename to Sys_ExpandSquiggle.
...
Hopefully the final resting place of this function.
2010-08-25 14:00:04 +09:00
Bill Currie
e9bd9a4baa
Move QFS_CreatePath() to Sys_CreatePath().
2010-08-25 13:52:24 +09:00
Bill Currie
4f620655be
Document quakefs.h
2010-08-25 13:40:22 +09:00
Bill Currie
f1943ebaab
Fix some path compression bugs.
2010-08-25 13:38:45 +09:00
Bill Currie
550b094b93
Unit testing for QFS_CompressPath
2010-08-25 13:38:30 +09:00
Bill Currie
05c57f219d
Nuke a comment.
2010-08-25 13:38:24 +09:00
Bill Currie
c6be3c469a
Make the names of static functions canonical.
2010-08-25 13:38:24 +09:00
Bill Currie
bbf2ac0204
Avoid creating // in path names.
2010-08-25 13:38:18 +09:00
Bill Currie
ba8ca132a9
Change QFS_Gamedir()'s parameter from dir to gamedir.
2010-08-25 13:31:24 +09:00
Bill Currie
745bdfafdf
Eliminate QFS_LoadHunkFile().
...
It is unused, and part of the group of functions I wish to remove from QF.
2010-08-25 13:31:23 +09:00
Bill Currie
cbee789fe1
Change ProgPath to ModelPath and dir.progs to dir.models.
...
The default is still $path/progs, as that is what is expected by the
game-code.
2010-08-25 13:31:13 +09:00
Bill Currie
cf40f5073d
Nuke QFS_WriteBuffers.
...
This function is too dangerous for my liking, and it's now unnecessary
since qfs has been locked down.
2010-08-25 13:31:13 +09:00
Bill Currie
031055a91f
Move the qfs_* cvars out of quakefs.h
...
The qfs cvars are all private.
2010-08-25 13:31:13 +09:00
Bill Currie
0cc4bc8c69
Move searchpath out of quakefs.h.
...
It's not needed, nor should it be used, anywhere else.
2010-08-25 13:31:13 +09:00
Bill Currie
478394ef81
Nuke MAX_GAMEDIR_CALLBACKS
...
The number of gamedir callbacks is now unlimited.
2010-08-25 13:31:08 +09:00
Bill Currie
a51e888a1b
Nuke MAX_OSPATH and clean up the mess.
2010-08-25 13:31:08 +09:00
Bill Currie
baede61f4f
New function: dstring_strdup
...
I got tired of always doing dstring_newstr/dstring_copy, so I thought it
was time to wrap it. dstring_strdup is the dstring equivalent of strdup.
2010-08-25 13:31:00 +09:00
Bill Currie
fd24170b32
get the behavior or PL_NewData correct
...
It taking ownership of the data was the correct behavior, so go back to that.
2010-08-20 13:21:22 +09:00
Bill Currie
a744caa421
The public api of qfplist is now fully documented.
...
Evertyhing that can or should be private now is, and all public functions
are documented.
2010-08-20 13:10:37 +09:00
Bill Currie
1442273a8f
more opaque correctness
2010-08-20 12:58:37 +09:00
Bill Currie
f55c203c5e
use the plist api correctly
...
don't work directly with the plist data. the structs that enabled that will
go away shortly.
2010-08-20 11:57:47 +09:00
Bill Currie
669771681a
split up and modernize configure.ac
...
Most of the guts of configure.ac have been moved to config.d and are then
brought in by m4_include. This will make maintaining configure.ac much easier.
Also drop use of PROGRAM and VERSION, using PACKAGE_NAME, PACKAGE_VERSION, and
on occasion, PACKAGE_STRING instead, and clean out some old files we no longer
need.
2010-08-19 15:01:43 +09:00
Bill Currie
0dfff8fd58
ignore stuff
2010-08-07 10:42:09 +00:00
Bill Currie
997102fea8
audit the usage of "only"
...
There are still a few iffy places (notably around certain prepositions), but
the relevant sentences are now much easier to read.
2010-01-13 06:42:26 +00:00
Bill Currie
d66934942d
nuke Con_Printf and Con_DPrintf and use Sys_* instead
2007-11-06 10:17:14 +00:00
Bill Currie
5c73d81e00
Python style long strings ("""...""") now supported for parsing. Any such strings will be written out as standard strings with escaped quotes when writing the plist.
2007-10-13 07:55:58 +00:00
Bill Currie
5294a97d6a
make sure the \ gets written for all escapes, not just octals
2007-10-13 07:14:47 +00:00
Bill Currie
7ceea13e10
fix an overflow bug
2007-09-21 10:43:27 +00:00
Bill Currie
1a601ee0f8
make the command/cvar searching case sensitive
2007-06-09 06:55:15 +00:00
Bill Currie
201f01b66c
hopefully speed up byte swaps
2007-05-26 23:18:46 +00:00
Bill Currie
ece4df298e
make that a factor of ~400.
2007-05-13 03:27:54 +00:00
Bill Currie
a72f2046f5
speed up PL_WritePropertyList by ~3x.
2007-05-13 03:13:01 +00:00
Bill Currie
ce0e0d421e
don't try to open the dirconf file if it hasn't been specified
2007-04-07 12:17:01 +00:00
Bill Currie
fcf464ef99
make riff int-size safe
2007-04-04 09:23:10 +00:00
Bill Currie
de265f236c
bail on unkown chunks so crap at the end of a wav does cause us to go nuts
2007-04-04 09:12:41 +00:00
Bill Currie
ff132bb536
64bit windows patch from phrosty
2007-04-04 07:48:14 +00:00
Bill Currie
542c1bb0d9
new cache scheme now works properly. next step: shuffle blocks to the top of the heap before locking them
2007-03-30 07:41:17 +00:00
Bill Currie
4cab5b90e6
new cache allocation scheme. still a couple warts, but at least now there's something to work with, and more importantly, there won't be cache movement anywhere near as often.
2007-03-28 13:09:49 +00:00
Bill Currie
e5b972529b
take a chainsaw to the existing code, cleaning out anything that's obviously unnecessary. preparation for the cache re-write
2007-03-28 09:52:01 +00:00
Bill Currie
fd8f530656
make valgrind stop crying wolf
2007-03-26 09:06:50 +00:00
Bill Currie
58112a6407
fix a couple of missed VISIBLE tags
2007-03-24 12:28:47 +00:00
Bill Currie
02c41feabc
make gamedir change a two phase operation so things can be done both before and after the cache is flushed. (still having problems with cached sounds, though)
2007-03-24 10:13:10 +00:00
Bill Currie
7add93e3ce
forgot to make Cache_ReadLock visible
2007-03-23 14:22:59 +00:00
Bill Currie
818756ace5
add a debug function
2007-03-23 12:36:55 +00:00
Bill Currie
81a57bb3fa
patch from phrosty for vc2005 support. includes fixes for a bunch of gcc-isms that crept in over the years.
2007-03-22 23:20:57 +00:00
Bill Currie
2d6f8c6501
compress // to /
2007-03-21 13:05:23 +00:00
Bill Currie
20b8dced56
cleanup the shutdown list in a manner that won't cause problems in a nested shutdown
2007-03-21 09:33:46 +00:00
Brian Koropoff
0c237ccc08
Allow cbuf interpreter to handle completion finding. Enhance completion logic a bit.
2007-03-20 21:31:07 +00:00
Brian Koropoff
b6e52faea8
Avoid duplicate entries when enumerating a directory
2007-03-20 05:55:29 +00:00