Bill Currie
e35ca56c1e
wrap the call to Con_BasicCompleteCommandLine in a local function
2010-01-13 06:47:21 +00:00
Bill Currie
df7c5b2908
cleanup Con_BasicCompleteCommandLine a tiny bit
...
remove an unnecessary strdup/free and fix a strncpy bug
2010-01-13 06:46:54 +00:00
Bill Currie
97f54e22df
fix the broken sdl/sdl32 hud
2009-12-23 02:08:49 +00:00
Bill Currie
5d15c70a0d
progress in cleaning up the screen size mess
2009-12-22 06:02:53 +00:00
Bill Currie
59c077638a
Fix the annoying "Unknown interpreter 'id'" error. It was both bogus and a symptom of other problems (also fixed).
2009-03-16 11:49:52 +00:00
Bill Currie
1a307e306f
Con_Printf actually has a use after all: it prints to the console /only/ (no redirects, etc)
2007-11-07 08:19:17 +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
a02405582a
opps, that was part of raorn's linker patches
2007-05-31 06:31:22 +00:00
Bill Currie
d996c364b8
massively speedup savegame scanning (and bump the menu progs memory size again :/)
2007-05-13 03:56:08 +00:00
Bill Currie
06157dc937
link the client console plugin against ruamoko. how I got away with this for so long is beyond me
2007-05-09 10:37:12 +00:00
Bill Currie
beb5438484
fix messed up build order by putting bi_inputline.c where it really belongs
2007-05-07 13:02:35 +00:00
Bill Currie
72daa2fd2b
add some sounds to the menus (not yet finished)
2007-05-07 12:17:12 +00:00
Bill Currie
7925e16d73
audit the usage of view_draw. It is really meant for draw callbacks, not direct usage by the application.
2007-04-09 00:22:17 +00:00
Bill Currie
2894182ec5
The status bar in the quakeworld server curses console finally does something. Currently only cpu usage, but as a proof-of-concept, it more than does its job.
2007-04-09 00:10:10 +00:00
Bill Currie
626dad45ac
set the new view's coordinates based on it being a root view.
2007-04-08 08:47:47 +00:00
Bill Currie
c6ea999d4d
whee, finally. stateful console mode :) nukes cl_chatmode.
2007-04-07 05:50:29 +00:00
Bill Currie
f621570dee
that /looked/ wrong :/
2007-04-07 05:36:06 +00:00
Bill Currie
d8b701608c
various cleanups (ow, my eyes hurt)
2007-04-07 05:06:42 +00:00
Bill Currie
5a78bf1bff
use VISIBLE instead of __attribute__ ((visibility ("default"))) directly
2007-04-07 02:14:22 +00:00
Brian Koropoff
82e732b052
Don't automatically append a space when results are from a custom completion handler
2007-03-27 09:41:04 +00:00
Bill Currie
4a421dbb49
scaning the new save files needs a lot more memory
2007-03-25 02:00:38 +00:00
Ragnvald Maartmann-Moe IV
6ff7c0516c
shamblerdimension lart
2007-03-23 13:13:26 +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
Brian Koropoff
1e6bc5f0a3
More intelligent completion
2007-03-21 01:41:15 +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
Bill Currie
fa011b55d1
client side of http transfer support (untested)
2007-03-20 14:16:43 +00:00
Brian Koropoff
e6e28d3e5e
Be verbose about the interpreter changing
2007-03-18 07:12:23 +00:00
Brian Koropoff
39d8a90336
Allow interpreter providers for the console to be registered and allow on-the-fly interpreter switching.
2007-03-18 03:48:09 +00:00
Bill Currie
99c0954b47
the big dso visibility patch :). Sure, we have to have unique names for static builds, but with controlled visibitly we should get faster program loads (although this isn't C++, so it's not as bad) and complex plugins are cleaner.
2007-03-10 12:00:59 +00:00
Bill Currie
3fb03fc2be
hah, should have been using __attribute__((used)) all that time (rather
...
than __attribute__((unused))). fixes the missing console in -x11
2005-08-04 15:27:09 +00:00
Bill Currie
3a709cac0f
revamp the server curses code to use views (planning on "watch windows" for
...
debugging things)
2005-06-14 11:30:33 +00:00
Bill Currie
4a8bc0a4c4
bit of a reorg to get most code out of the way of #ifdefs, bit of a speedup
...
for screen updates and add a simple escape sequence parser for home and end
in debian's xterm (which seems to have borked terminfo?)
2005-06-13 09:41:48 +00:00
Bill Currie
762aefc9b1
implement Raven's calling convention (rcall: first 2 params in opb and
...
opc). should give a general speedup to most progs.
2005-06-12 09:54:01 +00:00
Bill Currie
565bb92057
con_data clash. oops. :)
2005-06-08 10:07:48 +00:00
Bill Currie
501180aaac
gcc-4.0 fixes. even found some bugs :) (names /not/ mangled this time)
2005-06-08 06:35:48 +00:00
Ragnvald Maartmann-Moe IV
b72a8755ca
Move pr_keys.c to console, fixes missing Key_Progs_Init symbol for dynamic
...
builds with automake 1.9.
2005-01-13 15:10:42 +00:00
Bill Currie
9f0903e4ba
wildcode and despair's automake 1.9 patch
...
This is an imperfect revision of history.
2004-11-18 06:08:00 +00:00
Bill Currie
39bf47a265
use the resolve hook instead of a load function
...
This is an imperfect revision of history.
2004-11-09 22:35:00 +00:00
Bill Currie
f577eba1ab
need to ensure time is defined
...
This is an imperfect revision of history.
2004-11-09 22:30:00 +00:00
Bill Currie
f5bc90a53a
clean up some redundant progs functions (may be broken for a while)
...
This is an imperfect revision of history.
2004-11-05 11:49:00 +00:00
Bill Currie
2d671955fb
fix an oopsie that broke skyboxlist (early morning paper routes are bad for
...
coding:)
2004-04-23 22:53:39 +00:00
Bill Currie
616be68bdd
strip parameter to QFS_FilelistFill and add rua support
2004-04-20 22:52:09 +00:00
Bill Currie
e8f9761d33
move the filelist building code into quakefs
2004-04-20 22:25:52 +00:00
Bill Currie
37024a4419
final (?) cleanup of center printing. turns out there's no reason to keep
...
it in the renderer and every reason to pull it out (ok, some might
disagree:)
2004-03-02 03:55:18 +00:00
Bill Currie
7ff1534e9d
bah, fix one, create another...
2004-01-27 05:23:36 +00:00
Bill Currie
3a85dbda18
d'oh
2004-01-22 04:42:06 +00:00
Bill Currie
d9a582a741
fix the print mangling of scrolled back screens (thought of this about 10s
...
after committing:P)
2004-01-22 04:28:24 +00:00
Bill Currie
62ef6f9549
scrollback 90% working. prints will mangle things, but ^L will clean it up
2004-01-22 04:07:39 +00:00
Bill Currie
283d49bd8e
first chunk of Mike Gorchak's <mike@malva.ua> QNX patches
2004-01-20 05:57:39 +00:00
Bill Currie
e154c9add5
be consistent with WIN32 and _WIN32 (now all _WIN32)
2004-01-20 03:47:27 +00:00
Bill Currie
77b2942982
several libs can now get built as dlls in windows: console, gamecode,
...
gamecode_builtins, gib, image, modules, object, ruamoko and util.
2004-01-19 07:47:41 +00:00
Bill Currie
249aee2e9f
move the OO runtime support code from libQFgamecode to libQFruamoko where
...
it really belongs :)
2004-01-16 08:02:31 +00:00
Bill Currie
e7ffad8772
more rua cleanups: now just one init function to call (it calls the rest)
2004-01-16 07:03:58 +00:00
Bill Currie
01392c78bb
move the bulk of what whas libQFcsqc to libQFruamoko.
2004-01-16 05:46:19 +00:00
Bill Currie
b3f76e1e48
add some string builtins (only the basics for now, but enough to deal with
...
temporary strings) and fix the game load/save menus.
2004-01-07 07:36:17 +00:00
Bill Currie
acd54afff7
move to using a hash table for builtin number -> builtin lookup so sparse
...
ranges can be used efficiently. move the auto-allocated builtins to
0x10000000-0x7fffffff. should be more than enough :)
use static builtin tables ("nul" terminated) instead of a series of
function calls to add builtins to a vm. should be more memory efficient.
2004-01-06 05:51:09 +00:00
Bill Currie
dfc83c1f5f
add PR_PushFrame and PR_PopFrame so temp strings are easy to use for
...
parameters to progs functions.
double the progs stack sizes (call depth of 32? eek)
allow one extra call on the progs stack :)
misc minor cleanups
2004-01-05 07:10:32 +00:00
Bill Currie
7ea30f3f87
use the new pr load hook for resolving the globals
2003-11-20 08:02:32 +00:00
Bill Currie
14c65d48c7
white space and add a {}
2003-11-20 07:03:50 +00:00
Bill Currie
d3e7be755b
flush sv_logfile on each print
2003-10-22 09:04:18 +00:00
Bill Currie
28e2679f0b
while downward overlapped memcpys are safe, shut up valgrind
2003-08-13 17:07:42 +00:00
Bill Currie
9210829573
PLUGIN_INFO decl cleanup
2003-08-01 19:53:46 +00:00
Bill Currie
6063fb75d9
make the console run at full speed no matter what demo_speed is at. what a
...
lot of work for such a simple concept :P
2003-07-25 22:21:47 +00:00
Bill Currie
4cabc2db82
fix a non-curses build issue
2003-06-04 18:07:12 +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
Bill Currie
7e657c49f1
fix a buffer overflow (order of ops)
2003-05-16 19:36:03 +00:00
Brian Koropoff
e160ead563
Added the scriptable HUD interface between the engine, Rua, and GIB.
2003-05-14 21:17:32 +00:00
Bill Currie
054f4b7bd1
oopsie, that was an ill-advised change :P
2003-05-13 06:20:08 +00:00
Bill Currie
5f3573143a
the beginnings of a jihad against buffer overflows
2003-05-08 23:24:02 +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
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
62e36ef747
make /command work when not using curses
2003-04-26 05:12: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
fb1a5f67f2
kill debug print :P
2003-04-17 03:31:45 +00:00
Bill Currie
d566790c0b
make the input line scrolling unsigned int clean
2003-04-17 02:03:47 +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
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
0b0dfcc38e
nuke the string api (never really liked it)
2003-04-08 02:35:09 +00:00
Bill Currie
13fd0b8533
nuke the string hash api as it's been obsoleted
2003-04-07 22:34:39 +00:00
Bill Currie
a9a169e820
make the more relevant parts of qfs available to progs. bi_file.c will
...
eventually be moving into bi_qfs.c
2003-02-28 05:35:27 +00:00
Bill Currie
6ef4770adb
make the menu load when the gamedir hasn't been set
2003-02-28 05:28:35 +00:00
Bill Currie
851d203916
work towards a more secure qfs
2003-02-14 22:36:10 +00:00
Bill Currie
6a687f5e45
rename all the globals in quakefs.[ch] to be QFS_* or qfs_*
2003-02-14 19:46:07 +00:00
Bill Currie
fd7636137d
implement a proper (and optionally secure) QFile interace for ruamoko.
2003-02-14 18:17:17 +00:00
Brian Koropoff
3c522a83bc
Various cleanups and bugfixes. Added proper line number reporting to
...
errors. A few new builtin functions, such as slice::find and thread::list.
2003-02-14 08:06:01 +00:00
Brian Koropoff
59fbd48a81
Overhauled GIB to parse scripts in advance, among other design and language
...
changes. There still remains some bugs to be squashed, a feature or two to
add, and some polishing to be done. However, it seems to be in a workable
state.
2003-01-28 21:16:21 +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
a4dfef63c3
make all files with rcsid include config.h
2003-01-14 20:18:29 +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
Ragnvald Maartmann-Moe IV
46a093faba
Change sv_use_curses default to 0, until curses has scrollback support.
2002-12-02 20:03:12 +00:00
Brian Koropoff
0f71b02fd7
Changed the name of GIB builtins from string.length to string::length, etc.
...
Made a few miscellaneous cleanups and enhancements to builtins and changed
all the GIB scripts in CVS to reflect the new naming conventions.
2002-11-11 01:57:34 +00:00