summarylogtreecommitdiffstats
path: root/catacombsdl.sh
blob: 33dc11aa8d23f6562eee564a60e0aaa86c582c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# CatacombSDL launcher // carstene1ns 2014
#
# Does some juggling with the path to help finding the data files

[ ! -d $HOME/.catacombsdl ] && mkdir -p $HOME/.catacombsdl

if [ -f $HOME/.catacombsdl/LEVEL1.CA2 ]; then

  cd $HOME/.catacombsdl && exec /usr/share/catacombsdl/catacomb "$@"

else

  echo "Please place 'The Catacomb' / 'Catacomb II' data files in \"~/.catacombsdl\"."

fi