mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
27 lines
387 B
Text
27 lines
387 B
Text
global ln
|
|
|
|
ln.invoke_f = {
|
|
local cvar
|
|
cvar = ${ln.cvar.$0}
|
|
if ($argc == 1) {
|
|
echo "\"", $0, "\" is \"", $$cvar, "\""
|
|
return
|
|
}
|
|
set $cvar $1
|
|
}
|
|
|
|
function "ln" {
|
|
if ($argc != 3) {
|
|
echo "usage: ln cvar cvar_alias"
|
|
return
|
|
}
|
|
ln.cvar.$2 = $1
|
|
function $2 ${ln.invoke_f}
|
|
export $2
|
|
}
|
|
|
|
export ln
|
|
|
|
// QuakeForge qwcl
|
|
ln "in_mouse_amp" "sensitivity"
|
|
ln "in_grab" "_windowed_mouse"
|