summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-05-06 02:54:53 -0400
committerAndrew Cady <d@jerkface.net>2022-10-09 13:53:09 -0400
commit09440c7bd3b7541cb05cc3727dc4b1464fbe1402 (patch)
treeb27424dd1256a69a8acfce47631a9b39a9ea05e9
parentc14f39af557dca6f05ae776b365f91b636919330 (diff)
add doom games
l---------dot/local/bin/delaweare1
-rwxr-xr-xdot/local/bin/doom123
l---------dot/local/bin/doom21
l---------dot/local/bin/doom31
l---------dot/local/bin/plutonia1
l---------dot/local/bin/tnt1
6 files changed, 28 insertions, 0 deletions
diff --git a/dot/local/bin/delaweare b/dot/local/bin/delaweare
new file mode 120000
index 0000000..00d620f
--- /dev/null
+++ b/dot/local/bin/delaweare
@@ -0,0 +1 @@
doom1 \ No newline at end of file
diff --git a/dot/local/bin/doom1 b/dot/local/bin/doom1
new file mode 100755
index 0000000..5cda573
--- /dev/null
+++ b/dot/local/bin/doom1
@@ -0,0 +1,23 @@
1#!/bin/sh
2game=${0##*/}
3waddir=/usr/share/games/doom
4case "$game" in
5 doom1) game=doom ;;
6esac
7if ! [ -e "$waddir"/"$game".wad ]
8then
9 set --
10 for wad in "$waddir"/*.wad
11 do
12 wad=${wad##*/}
13 wad=${wad%.wad}
14 set -- "$@" "$wad"
15 done
16 exec >&2
17 echo "Error: No WAD found for $game ('$waddir/$game.wad' not found)"
18 echo "Available WAD files: $@"
19 exit 1
20fi
21savedir=~/.prboom-plus/save/"$game"
22mkdir -p "$savedir"
23prboom-plus -save "$savedir" -iwad "$game" "$@"
diff --git a/dot/local/bin/doom2 b/dot/local/bin/doom2
new file mode 120000
index 0000000..00d620f
--- /dev/null
+++ b/dot/local/bin/doom2
@@ -0,0 +1 @@
doom1 \ No newline at end of file
diff --git a/dot/local/bin/doom3 b/dot/local/bin/doom3
new file mode 120000
index 0000000..00d620f
--- /dev/null
+++ b/dot/local/bin/doom3
@@ -0,0 +1 @@
doom1 \ No newline at end of file
diff --git a/dot/local/bin/plutonia b/dot/local/bin/plutonia
new file mode 120000
index 0000000..00d620f
--- /dev/null
+++ b/dot/local/bin/plutonia
@@ -0,0 +1 @@
doom1 \ No newline at end of file
diff --git a/dot/local/bin/tnt b/dot/local/bin/tnt
new file mode 120000
index 0000000..00d620f
--- /dev/null
+++ b/dot/local/bin/tnt
@@ -0,0 +1 @@
doom1 \ No newline at end of file