]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Initial implementation of cvar aliases, with slowmo as a starting example
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jun 2020 18:11:31 +0000 (18:11 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jun 2020 18:11:31 +0000 (18:11 +0000)
commit83bc253950b171f125f2b858c689b6074c83b54d
tree2ced66601fe1248ed975db6d37d22500651eac92
parent5a73899928508997d8b00d258399c5762cea62f3
Initial implementation of cvar aliases, with slowmo as a starting example

This allows cvars to be renamed, and keep the old cvar by pointing it to
the new one. Pretty much every cvar finding function has been adapted to
return a the aliased cvar or the alias itself depending on context.

For example, if a value is needed, it'll dereference the alias. If the
cvar is needed to be listed somewhere or to check if the cvar merely
exists, it will not. Other than that, it's pretty straightforward.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12643 d7cf8633-e32d-0410-b094-e92efae38249
15 files changed:
cl_input.c
cl_parse.c
cl_video.c
cmd.c
console.c
cvar.c
cvar.h
host.c
host_cmd.c
menu.c
prvm_cmds.c
prvm_edict.c
server.h
sv_main.c
vid_sdl.c