blob: 033de43d7c25984e3c5f8c72882edfc6505660d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
# Configure soundfonts if not already configured
if [ -z "$SDL_SOUNDFONTS" ]; then
DEFAULT_SOUNDFONT="/usr/share/soundfonts/default.sf2"
if [ -f "$DEFAULT_SOUNDFONT" ]; then
# Use default soundfont since it exists
export SDL_SOUNDFONTS="$DEFAULT_SOUNDFONT"
else
# Use first available soundfont
export SDL_SOUNDFONTS="$(find /usr/share/soundfonts -type f,l -print -quit 2> /dev/null)"
fi
fi
# Run program in correct directory so it can find it's resources
cd /usr/lib/spacecadetpinball
exec ./SpaceCadetPinball "$@"
|