From 09440c7bd3b7541cb05cc3727dc4b1464fbe1402 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 6 May 2022 02:54:53 -0400 Subject: add doom games --- dot/local/bin/delaweare | 1 + dot/local/bin/doom1 | 23 +++++++++++++++++++++++ dot/local/bin/doom2 | 1 + dot/local/bin/doom3 | 1 + dot/local/bin/plutonia | 1 + dot/local/bin/tnt | 1 + 6 files changed, 28 insertions(+) create mode 120000 dot/local/bin/delaweare create mode 100755 dot/local/bin/doom1 create mode 120000 dot/local/bin/doom2 create mode 120000 dot/local/bin/doom3 create mode 120000 dot/local/bin/plutonia create mode 120000 dot/local/bin/tnt 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 @@ +#!/bin/sh +game=${0##*/} +waddir=/usr/share/games/doom +case "$game" in + doom1) game=doom ;; +esac +if ! [ -e "$waddir"/"$game".wad ] +then + set -- + for wad in "$waddir"/*.wad + do + wad=${wad##*/} + wad=${wad%.wad} + set -- "$@" "$wad" + done + exec >&2 + echo "Error: No WAD found for $game ('$waddir/$game.wad' not found)" + echo "Available WAD files: $@" + exit 1 +fi +savedir=~/.prboom-plus/save/"$game" +mkdir -p "$savedir" +prboom-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 -- cgit v1.2.3