nuclide, nuclide-ds: Use /home/eukara/Library/Games if available to dump configs/saves in

This commit is contained in:
Marco Cawthorne 2022-11-30 14:20:44 -08:00
parent e2f708138d
commit 9fd61ddbbe
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 24 additions and 7 deletions

11
nuclide
View File

@ -2,14 +2,19 @@
set -e
SRCPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
if [ -d "$HOME/Library/Games" ]
then
ADDITIONAL_ARGS="-usehome -homedir ${HOME}/Library/Games/Nuclide"
fi
cd "$SRCPATH/bin"
if [ -f "$SRCPATH/bin/fteqw" ]; then
if [ -z "$NUCLIDE_GDB" ]; then
./fteqw -basedir ../ $*
./fteqw ${ADDITIONAL_ARGS} -basedir ../ $*
else
gdb --args ./fteqw -basedir ../ $*
gdb --args ./fteqw ${ADDITIONAL_ARGS} -basedir ../ $*
fi
else
printf "Engine is not present, please run build_engine.sh\n"
fi
fi

View File

@ -1,10 +1,22 @@
#!/bin/sh
set -e
SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )"
PATH="$SCRPATH"/bin:"$PATH"
if [ -f "$SCRPATH"/bin/fteqw-sv ]; then
fteqw-sv $*
# We want to keep our library separate
if [ -d "$HOME/Library/Games" ]
then
ADDITIONAL_ARGS="-usehome -homedir ${HOME}/Library/Games/Nuclide"
fi
cd "$SRCPATH/bin"
if [ -f "$SRCPATH/bin/fteqw-sv" ]; then
if [ -z "$NUCLIDE_GDB" ]; then
./fteqw-sv ${ADDITIONAL_ARGS} -basedir ../ $*
else
gdb --args ./fteqw ${ADDITIONAL_ARGS} -basedir ../ $*
fi
else
printf "Engine is not present, please run build_engine.sh\n"
fi
f