blob: be838c7432ccb65840455171a99d58cb944a9503 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
HOMEDIR="${HOME}/.nightsky"
GAMEDIR="@GAMES_PREFIX_OPT@/nightsky"
# create root config dir
[ -e "${HOMEDIR}" ] || mkdir "${HOMEDIR}"
# symlink game data
for i in `cd "${GAMEDIR}" || exit 1 ; ls -d *` ; do
[ -e "${HOMEDIR}/${i}" ] || ln -sf "${GAMEDIR}/${i}" "${HOMEDIR}/${i}"
done
# create empty Settings dir
[ -e "${HOMEDIR}/Settings" ] || mkdir "${HOMEDIR}/Settings"
cd "${HOMEDIR}"
# start architecture dependent binary
if [ -e "${HOMEDIR}/NightSkyHD_64" ] ; then
exec ./NightSkyHD_64 "$@"
else
exec ./NightSky "$@"
fi
|