ref: 70435c9cc9aa905654475737331490bbdfb9bcea
parent: 2893ff4a3cc59e37d752f11549aa7bebf9ffdf9d
author: qwx <qwx@sciops.net>
date: Tue Jul 20 09:56:02 EDT 2021
launchers: system-wide installations of quake* and wl3d
--- a/bin/qdemo
+++ b/bin/qdemo
@@ -1,11 +1,11 @@
#!/bin/rc
window -r 952 0 1920 608 'cd lib/dm/plt; doom -z plt -noztele -playdemo dime >/dev/null >[2=1]'
-window -r 156 -1 964 607 'quake2 +set game q2dq2 >/dev/null >[2=1]'
+window -r 156 -1 964 607 'games/quake2 +set game q2dq2 >/dev/null >[2=1]'
window -r 2 474 810 1082 'qk1 -m 24 >/dev/null >[2=1]'
-window -r 806 597 1454 1005 'wl3d -s'
+window -r 806 597 1454 1005 'games/wl3d -s'
window -r 1450 596 1921 1081 'p $home/p/rc/qdemo; read -c 1'
window -r 0 0 160 478 'stats -lmsc'
-window -scroll -r 806 1026 1194 1080 'play mv/gojira.torii.mp3 m/gojira.*'
+window -scroll -r 806 1026 1194 1080 'play mmpr/gojiratl.torii.opus mmpr/gojirati.hidden.track.opus'
# todo: do these automatically:
# q2dq2: map run/base1.dm2
--- a/bin/qk1
+++ b/bin/qk1
@@ -11,4 +11,4 @@
}
echo resize $res >/dev/wctl
bind -q /sys/games/lib/quake/cd /mnt/cd # cdfs(4)
-quake $a $* >/dev/null
+games/quake $a $* >/dev/null
--- a/bin/qk2
+++ b/bin/qk2
@@ -7,7 +7,7 @@
res=(-dx 808 -dy 608)
}
noresz=()
-c=(quake2)
+c=(games/quake2)
# launch ctf with: qk2 -g ctf $* +set ctf 1
# launch crbot with: qk2 -g crbot $* +set deathmatch 1 +set ctf 0
while(~ $1 -?){
@@ -14,7 +14,7 @@
switch($1){
case -g
# mods' executables are named q2$x
- c=(q2$2 +set game $2)
+ c=(games/q2$2 +set game $2)
shift
case -m
cdmnt=$2
--- a/bin/qk3
+++ b/bin/qk3
@@ -1,4 +1,4 @@
#!/bin/rc
echo scroll >/dev/wctl
-#cd /sys/games/lib/quake3 && q3ded +set developer 1 +set fs_game cpma +map cpm22
-cd /sys/games/lib/quake3 && q3ded +set developer 1 +map q3dm17
+#cd /sys/games/lib/quake3 && games/q3ded +set developer 1 +set fs_game cpma +map cpm22
+cd /sys/games/lib/quake3 && games/q3ded +set developer 1 +map q3dm17
--- a/bin/qw
+++ b/bin/qw
@@ -10,4 +10,4 @@
}
echo resize $res >/dev/wctl
bind -q /sys/games/lib/quake/cd /mnt/cd # cdfs(4)
-qwcl -mem 32 $* >/dev/null
+games/qwcl -mem 32 $* >/dev/null
--- a/bin/wl
+++ b/bin/wl
@@ -22,4 +22,4 @@
}
echo resize $r >/dev/wctl
-wl3d $*
+games/wl3d $*