Bill Currie
6efa0ca736
if at first you don't succeed...
2003-07-10 22:20:29 +00:00
Bill Currie
dfa16742e2
fix some silly bugs (sizeof (char*) :P)
2003-07-09 15:38:19 +00:00
Bill Currie
0cf0f710b7
remove some unneeded code
2003-07-09 15:34:58 +00:00
Bill Currie
855fc53709
handle alloca properly
2003-07-09 06:28:09 +00:00
Bill Currie
84e071d235
fix an incorrect usage of HAVE_* that finally bit my bum
2003-07-09 04:21:45 +00:00
Bill Currie
4f66e1e9da
fix a bunch of the previous FIXMEs. needs a bit more work for win32
...
compiling
2003-07-08 22:39:45 +00:00
Bill Currie
dddf045221
put "FIXME: overflow" on all the char arrays I could find that weren't
...
obviously safe
2003-07-08 20:11:10 +00:00
Bill Currie
21f7365bcc
make "win" the default for snd_output on windows
2003-07-08 20:09:23 +00:00
Bill Currie
011fe7babb
make sure the trimmed info key value gets terminated properly
2003-07-08 17:26:50 +00:00
Ragnvald Maartmann-Moe IV
2630ed1adf
More informative UDP setup failure messages.
2003-06-26 20:24:47 +00:00
Bill Currie
1d32ff04e6
fix missing params for VA_COPY pointed out by Dalibor Topic
...
<robilad@yahoo.com>
2003-06-25 15:22:39 +00:00
Chris Ison
64f74731c5
added vid_fullscreen cvar as a CVAR_ROM. This will change once the renderer is setup to reload textures.
...
removed -window, -mode, and internal mode table and functions that strictly delt with them.
Rewrote the mode selection part of VID_Init
Altered VID_SetMode and associated functions to use data obtained from VID_Init instead of mode tables.
Also tidied up a little.
2003-06-21 00:17:32 +00:00
Chris Ison
bff8a24d12
added -conheight checking
2003-06-21 00:07:59 +00:00
Bill Currie
862e9d89c5
mindhog's fix for 32bpp x11
2003-06-17 03:11:24 +00:00
Chris Ison
d720efe1e6
fixed misplacement of menu
2003-06-16 12:31:52 +00:00
Bill Currie
f22bdfc23f
d'oh, forgot to update the format
2003-06-06 15:47:12 +00:00
Bill Currie
8d470d2b49
don't use qfs_gamedir->* in QFS_NextFilename as it gets passed that in the
...
template (and shouldn't assume where to put the file anyway:). fixes the
all screenshots saves sas qf0000.tga bug.
2003-06-06 15:44:13 +00:00
Ragnvald Maartmann-Moe IV
c6b6c7926f
Fix one bug, but doesn't fix all screenshots being saved to qf0000.tga...
2003-06-06 12:35:52 +00:00
Bill Currie
191a7f61bc
win32 compile fixes
2003-06-05 17:56:09 +00:00
Bill Currie
ce9ddfd186
win32 fix
2003-06-05 17:51:49 +00:00
Bill Currie
58c9203adc
openbsd compile fix from nano
2003-06-05 16:08:10 +00:00
Bill Currie
4cabc2db82
fix a non-curses build issue
2003-06-04 18:07:12 +00:00
Bill Currie
f061c47242
make QFS_CreatePath work again and remove some old code from QFS_WriteFile
2003-05-30 01:44:39 +00:00
Brian Koropoff
9e57425f4f
Make the playcenter hack not screw up sound spatialization.
2003-05-28 04:49:09 +00:00
Bill Currie
00abd17dd4
dstring.[ch]:
...
add dstring_copysubstr and make all the substr functions use strnlen
for the incoming string. also fix the append string functions to append
the present string correctly.
cbuf.c:
use dstring_copystr instead of dstring_clearstr/dstring_appendstr
idparse.c:
use dstring_copysubstr instead of dstring_clearstr/dstring_insert
2003-05-26 19:14:18 +00:00
Brian Koropoff
9602d6c88d
Fixed an interesting crash that occured when a recycled idparse cbuf was
...
given to GIB when it pushed the cbuf stack.
2003-05-26 05:07:21 +00:00
Brian Koropoff
1f6acdb0cc
Make file::delete and file::move use QFS functions.
2003-05-25 05:42:01 +00:00
Brian Koropoff
3aecdcf42c
Added a temporary hack to make ~/.quakeforgerc work again.
2003-05-25 05:40:25 +00:00
Bill Currie
66e2ef1926
fix an uninitialized variable
2003-05-23 17:39:33 +00:00
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
Brian Koropoff
30c4da3c76
Change HUD::show and HUD::hide to HUD::enable and HUD::disable. The global
...
progs variable time is now updated before the HUD drawing function is run.
2003-05-23 02:50:15 +00:00
Brian Koropoff
c3d18bd53a
Make file::read and file::write use the new QFS functions. This allows
...
reading files out of paks from GIB. file::find still needs to be updated
(and renamed).
2003-05-22 02:32:38 +00:00
Bill Currie
6a8469df14
start working on VA support for borked GL libs
2003-05-21 21:53:21 +00:00
Bill Currie
3607fecafd
copy was meant to be a permanent dstring
2003-05-20 15:56:23 +00:00
Brian Koropoff
fad902f0bf
Fixed a thinko that was causing events not to run under certain
...
circumstances.
2003-05-17 17:36:10 +00:00
Bill Currie
ba3601685c
wad pics don't have extensions (plugs a buffer underflow hole)
2003-05-16 19:44:25 +00:00
Bill Currie
7e657c49f1
fix a buffer overflow (order of ops)
2003-05-16 19:36:03 +00:00
Bill Currie
460c8f7f0f
mindHog's qfpython patch. GIB info string event callbacks and a compile fix
...
for broken x11 headers.
2003-05-16 16:17:24 +00:00
Brian Koropoff
ff5ad2ee1c
Added text::white and text::brown builtins to produce text of specific
...
colors.
2003-05-16 07:24:58 +00:00
Brian Koropoff
124d90f84f
Add the playcenter command to play a sound without 3d spatialization.
2003-05-15 22:39:34 +00:00
Brian Koropoff
6eaa5518a4
Nuke some dprintfs
2003-05-15 22:39:04 +00:00
Brian Koropoff
0ba2481632
Applied taniwha's mem leak fix.
2003-05-15 21:59:19 +00:00
Bill Currie
dedb2fa6bf
get [super ...] working correctly
2003-05-15 05:58:31 +00:00
Brian Koropoff
dd0332632e
Make gcc2 stfu.
2003-05-15 04:37:00 +00:00
Brian Koropoff
e160ead563
Added the scriptable HUD interface between the engine, Rua, and GIB.
2003-05-14 21:17:32 +00:00
Brian Koropoff
72c21f60c9
Add support for GIB handles to the Rua interface.
2003-05-14 21:16:23 +00:00
Brian Koropoff
bf675e793e
Fixed a few GIB bugs, added the chomp builtin.
2003-05-14 21:13:41 +00:00
Brian Koropoff
e2061095a6
Fixed .tga loading for GL targets. SW targets still need work in all
...
likelyhood.
2003-05-14 21:08:43 +00:00
Bill Currie
8ed5962b22
comment out an unused function
2003-05-14 16:29:27 +00:00
Bill Currie
054f4b7bd1
oopsie, that was an ill-advised change :P
2003-05-13 06:20:08 +00:00
Bill Currie
b5a960c57b
fix nq's gamedir handling for the -hipnotic etc shortcuts
2003-05-09 21:10:59 +00:00
Ragnvald Maartmann-Moe IV
6763d73f99
Make glError testing static, for now, to shut up compiler warnings.
2003-05-09 05:22:30 +00:00
Ragnvald Maartmann-Moe IV
f6b556a3a1
*beats CVS with the cluebat*
2003-05-09 01:41:56 +00:00
Bill Currie
5f3573143a
the beginnings of a jihad against buffer overflows
2003-05-08 23:24:02 +00:00
Bill Currie
be0b3867c7
add dstring_copy and dstring_copystr to make dstring init easier
2003-05-08 23:05:39 +00:00
Ragnvald Maartmann-Moe IV
d68b4b6121
\n is nice occasionally.
2003-05-08 22:32:02 +00:00
Ragnvald Maartmann-Moe IV
28dd1612c3
Clean up glError handling.
2003-05-08 22:16:30 +00:00
Bill Currie
0a5f3c31eb
ping/pl/fps/time now stays put and is now in the client rather than the
...
renderer (so nq is currently missing it)
2003-05-08 05:49:57 +00:00
Bill Currie
dc9d2c89da
fix various sizing issues
2003-05-07 07:10:15 +00:00
Bill Currie
0fec378e31
view.c needs to be in the main console lib rather than the client plugin
...
and make view_draw the default draw function for new views
2003-05-07 04:24:20 +00:00
Bill Currie
a4abf526e8
there's no need to call Con_CheckResize every frame and it's now
...
detrimental anyway
2003-05-06 18:00:03 +00:00
Bill Currie
c397504b74
fix menu centering for 320xY
2003-05-06 03:19:29 +00:00
Bill Currie
f12f4a8898
add view_insert to provide greater control over view order
2003-05-06 02:41:37 +00:00
Bill Currie
b2bbcb30c6
fix the missing chat input line
2003-05-06 02:30:38 +00:00
Bill Currie
56bfc6dc45
fix the input line location bug and change enabled to visible due to
...
enabled meaning something else in UIs
2003-05-06 02:25:46 +00:00
Bill Currie
508fb4fb5c
new view stuff mostly working. just a few visual bugs to iron out
2003-05-06 02:19:13 +00:00
Bill Currie
1bdcd879be
initial work on dynamic view support for the console. I'm aware that
...
QF/view.h vs view.h may cause some confusion, but I'm hoping to eleminate
view.h.
Also put the sample hud.txt into docs so it doesn't get lost.
2003-05-05 18:50:14 +00:00
Bill Currie
06608fbf37
round the mmap length up to the nearest page size
2003-04-30 14:55:58 +00:00
Bill Currie
95ae17acc1
I don't know why MAP_SHARED is needed, but it's not compatable with
...
write-only mode, so make it part of snd_oss_rw
2003-04-30 02:52:41 +00:00
Bill Currie
09f3f1ea26
mindHog's plugin global symbol handling patch so his python plugin can work
...
(reloads the plugin with RTLD_GLOBAL if the plugin requests it).
2003-04-30 02:14:44 +00:00
Bill Currie
30b25af44b
bring back the rw/wo code
2003-04-29 03:14:37 +00:00
Bill Currie
62e36ef747
make /command work when not using curses
2003-04-26 05:12:16 +00:00
Bill Currie
4a73d5dc45
this seems to fix the "end of file" issues on streams
2003-04-26 04:30:07 +00:00
Bill Currie
3418e904a4
mindHog's fix for RemoveCommand being totally borked (oops:)
2003-04-25 03:06:34 +00:00
Bill Currie
e16a211e1f
PR_SetString doesn't like null pointers, it seems. While fixing
...
PR_SetString would be a better fix, this is faster code.
2003-04-24 04:57:30 +00:00
Bill Currie
f7d806e8d5
can now handle > vector sized parameters
2003-04-22 20:11:16 +00:00
Bill Currie
e732cf591d
remove all references to OFS_* from the C code. only the macros in progs.h
...
use them now
2003-04-22 18:20:15 +00:00
Bill Currie
f842d98964
initialize noise1
2003-04-22 01:37:13 +00:00
Bill Currie
905f1826eb
temporarily remove location support from nq (and location markers from both)
...
until client code has been cleaned up more
2003-04-21 18:26:21 +00:00
Bill Currie
7d06343b2f
make the opened sfx name usable
2003-04-21 18:09:53 +00:00
Bill Currie
848bb891b3
win32 compile fix
2003-04-21 17:28:56 +00:00
Bill Currie
b43651685a
fix a buffer overrun issue with -game
2003-04-21 04:49:02 +00:00
Bill Currie
a8d171ec40
replace a warped wheel with a strdup wheel ;)
2003-04-21 04:02:58 +00:00
Bill Currie
eac5b83ea5
remove some debug info
2003-04-21 01:44:55 +00:00
Bill Currie
194c9aa097
fix the file handle leak
2003-04-21 01:39:07 +00:00
Bill Currie
efe9dd844f
fix the segfault on starting a map only to die from file handle starvation :P
2003-04-21 01:24:53 +00:00
Bill Currie
714bd341fc
'copy' streams on openning. fixes the shared stream issues, though other
...
problems might arrise (eg, running out of file handles or memory)
2003-04-20 07:19:51 +00:00
Bill Currie
52f41f8095
make streams work in chunks of 256 samples (won't work so well for non power
...
of 2 resample rates :/)
2003-04-20 03:42:19 +00:00
Bill Currie
e4ba0ad5e5
move to static initialization for plugin info
2003-04-20 02:05:28 +00:00
Bill Currie
49571b257d
crystal clear playback on resampled streams :) (still borked when shared,
...
though :/)
2003-04-17 17:43:21 +00:00
Bill Currie
64d5e4e053
mindHog's (mindhog@mindhog.net) plugin command patch
2003-04-17 15:18:16 +00:00
Bill Currie
51f7b934d1
more headpos resetage
2003-04-17 03:58:16 +00:00
Bill Currie
28cc2e24ef
headpos needs resetting too at sfx end
2003-04-17 03:53:54 +00:00
Bill Currie
fb1a5f67f2
kill debug print :P
2003-04-17 03:31:45 +00:00
Bill Currie
772b8d5961
more triage :P
2003-04-17 02:55:26 +00:00
Bill Currie
87025a4598
get sound (generally) working again
2003-04-17 02:40:17 +00:00
Bill Currie
d566790c0b
make the input line scrolling unsigned int clean
2003-04-17 02:03:47 +00:00
Bill Currie
9a40bf2956
get the fix right
2003-04-17 00:25:55 +00:00
Bill Currie
5cb8429f04
bah, cleanup for flex versions :P
2003-04-17 00:14:13 +00:00
Bill Currie
eb099ae0d3
make qf gcc 3.3 clean
2003-04-17 00:01:48 +00:00
Bill Currie
589c3e4e49
get nq-server working properly
2003-04-16 05:06:19 +00:00
Bill Currie
f55bac4c06
fix nq-servers non-curses console input so it actually works
2003-04-16 04:07:55 +00:00
Bill Currie
63e6ae2869
report the name of the stream if reading is truncated
2003-04-15 21:11:41 +00:00
Bill Currie
0421c33b85
make sure the cbuf is usable when text gets added
2003-04-15 19:40:46 +00:00
Bill Currie
37fa93e8e5
horrible hack for `fixing' glitchy sound effects when a stream is shared by
...
more than one object
2003-04-15 04:19:33 +00:00
Bill Currie
5505aba316
minor cleanups
2003-04-15 04:03:02 +00:00
Bill Currie
130a3f4d59
fix the -ve reads
2003-04-15 03:21:29 +00:00
Bill Currie
da44c783fb
get the new sound system mostly working. just getting a bogus read count
...
in the stream reader at the moment, otherwise it's working wonderfully :)
2003-04-15 02:34:17 +00:00
Bill Currie
dfff6bcdb7
duplicate the vorbis file info when creating a stream
2003-04-14 16:28:20 +00:00
Bill Currie
9fda72c119
streamed sounds /almost/ work. sound like crap but no crashes
2003-04-14 15:47:08 +00:00
Bill Currie
aab4dcf931
getting there with streams. just need to get the painters working, I think.
...
(streaming currently disabled for anything < 30s :)
2003-04-14 06:11:53 +00:00
Bill Currie
38ef81ca78
set the buffer length as early as possible for cached sounds
2003-04-14 01:40:40 +00:00
Brian Koropoff
11e2f0d16a
Added a generic interface for using handles in GIB and made GIB threads
...
use it.
2003-04-14 01:17:55 +00:00
Brian Koropoff
e707e9bb89
Moved gib_*.h into include/ and moved the necessary declarations and struct
...
definitions to QF/gib.h to interface with libQFgib.
2003-04-13 22:07:58 +00:00
Brian Koropoff
3b703db4d4
Added the beginnings of an interface between Ruamoko and GIB. Although the
...
API is by no means finalized, it's now possible to write GIB builtins in
Ruamoko that can take arguments and return values to GIB.
2003-04-13 20:43:52 +00:00
Bill Currie
1b2d7b79a6
streams getting closer, not working yet, though
2003-04-13 06:46:24 +00:00
Brian Koropoff
63c3038ad8
Added the useful dstring_freeze function to convert a dstring to a
...
finalized, plain C string.
2003-04-13 05:48:28 +00:00
Bill Currie
23278d0706
fix looping
2003-04-12 00:03:56 +00:00
Bill Currie
4eaeb91cc4
disable debug
2003-04-11 23:52:18 +00:00
Bill Currie
b7ff08fba4
effectively disable streamed oggs for now
2003-04-11 23:50:45 +00:00
Bill Currie
e3f8c833ad
getting closer. wav's successfully load, but playback is always looped (?).
...
oggs hang
2003-04-11 21:14:38 +00:00
Bill Currie
948c97a6a4
cached wav files almost work (seems cached ogg are borked now :/)
2003-04-11 18:59:14 +00:00
Bill Currie
5be73df678
temporary fix to handle wav files in a pak file
2003-04-11 18:28:26 +00:00
Bill Currie
725f1d0595
don't compile any vorbis code if it's unavailable
2003-04-11 14:38:31 +00:00
Brian Koropoff
f287e78030
Optimized the way resetting buffer states occurs and fixed thread::kill so
...
threads actually die as they are supposed to.
2003-04-11 05:58:58 +00:00
Bill Currie
8012a408b8
90% there for cache wav support. will likely segfault :)
2003-04-11 04:39:51 +00:00
Brian Koropoff
af114732ef
Oops, forgot these.
2003-04-11 04:37:41 +00:00
Bill Currie
12724f5fa7
cached oggs work
2003-04-11 02:58:24 +00:00
Brian Koropoff
d8c0f50c11
The ultimate GIB bugfix commit, including reworked semantic processing,
...
a fix for arguments passed to a GIB function run via rcon, and various
other fixes.
2003-04-11 02:57:11 +00:00
Bill Currie
21e0e342a0
fix the calling of a null pointer (oops:)
2003-04-11 02:21:25 +00:00
Bill Currie
ccb56eea39
half way though the sfx loader re-write. nothing works :)
2003-04-11 01:17:48 +00:00
Bill Currie
e5a23c95dc
make riff.c portable
2003-04-10 22:52:58 +00:00
Bill Currie
722c55391e
read fmt chunks properly
2003-04-10 22:03:55 +00:00
Bill Currie
5e98c762ed
riff namespace cleanup (sorta, it's ugly:/)
2003-04-10 21:45:12 +00:00
Bill Currie
c58dac3ccf
don't actually read the main `data' chunks; only refer to them by location.
...
allows support for huge wav files (eg, cdda.wav)
2003-04-10 21:34:51 +00:00
Bill Currie
e1b779502a
but the third castle stood!
2003-04-10 21:18:53 +00:00
Bill Currie
0045ab7c09
implement Qungetc and nuke Qgetpos and Qsetpos
2003-04-10 21:11:40 +00:00
Bill Currie
9afc3cf8f6
copyright date fixes
2003-04-10 16:54:12 +00:00
Bill Currie
e937fecdc1
move the riff reading code into libQFutil
2003-04-10 16:52:39 +00:00
Bill Currie
39886ebb18
handle short files more robustly
2003-04-10 16:11:09 +00:00
Bill Currie
ff577f1175
add a \n to the grab failed message
2003-04-09 16:38:17 +00:00
Bill Currie
c9f0652a95
start of split-out wav loader. not done yet (probably doesn't compile) but
...
easier to keep track of here :)
2003-04-09 07:30:49 +00:00
Bill Currie
b80357afda
change _FOpenFile to take a dstring for foundname plugging a potential
...
buffer overflow.
2003-04-09 05:55:41 +00:00
Bill Currie
dd297bc12a
start work on support for stereo samples
2003-04-08 22:23:16 +00:00
Bill Currie
d3b6fcbd61
revert the inappropriately complicated event code for the simpler version.
...
even that's not likely to be final
2003-04-08 19:20:48 +00:00
Bill Currie
255a7522bd
merge IN_SendKeyEvents and IN_Commands into IN_ProcessEvents
2003-04-08 18:45:12 +00:00
Bill Currie
35eb866603
kill VID_HandlePause and IN_HandlePause as they never did anything and
...
IN_ModeChanged as it's a dead prototype
2003-04-08 17:55:32 +00:00
Bill Currie
fcc069d216
more unused files
2003-04-08 17:47:43 +00:00
Bill Currie
40a73ea5c1
don't need this
2003-04-08 17:32:55 +00:00
Bill Currie
7f31f05684
alpha compile fixes
2003-04-08 05:33:49 +00:00