summarylogtreecommitdiffstats
path: root/sm64coopdx.sh
blob: 9c5a6424d8d03668dc3c1e1e781a6b9481e1eb2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# constants
PKGNAME="sm64coopdx"

GAMEPATH="/usr/share/$PKGNAME"
LIBPATH="/usr/lib/$PKGNAME"
SAVEPATH="$HOME/.local/share/$PKGNAME"

# create the save directory if it doesn't exist
mkdir -p "$SAVEPATH"

# run the game
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIBPATH" "$GAMEPATH/$PKGNAME" --savepath "$SAVEPATH" "$@"