From f66dd7f634e5313792656554578d773b68b4da46 Mon Sep 17 00:00:00 2001 From: B. Watson Date: Tue, 17 Jan 2017 22:51:00 +0700 Subject: games/chexquest3: Added (breakfast cereal themed FPS game). Signed-off-by: Willy Sudiarto Raharjo --- games/chexquest3/chexquest3.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 games/chexquest3/chexquest3.sh (limited to 'games/chexquest3/chexquest3.sh') diff --git a/games/chexquest3/chexquest3.sh b/games/chexquest3/chexquest3.sh new file mode 100644 index 0000000000..9c374ef939 --- /dev/null +++ b/games/chexquest3/chexquest3.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Wrapper script for chexquest3, part of the SlackBuilds.org project. +# Finds a usable Doom engine and uses it to run the game. + +# The IWAD. Actually, for some reason, its header defines it as a PWAD. +# But it really is an IWAD. Go figure. +WAD=/usr/share/games/doom/chex3.wad + +# The list is restricted to engines that (a) are on SBo, and (b) can +# actually play Chex Quest 3. + +# These were tested, and don't work: +# chocolate-doom crispy-doom odamex prboom prboom-plus doomretro doomsday + +# These were tested, and do work... though skulltag has issues. +ENGINES="gzdoom zdoom skulltag" + +# And we're off to the races... +for eng in $ENGINES; do + if /bin/which $eng &>/dev/null; then + exec $eng -iwad $WAD "$@" + fi +done + +echo "Can't find any of $ENGINES, can't run game." 1>&2 +exit 1 -- cgit v1.2.3