thfr 33f90671af import shockolate, a source port of the engine for System Shock
ok solene@ (minor tweaks to README since then)

DESCR:
Shockolate - System Shock, but cross platform! Based on the source code for
PowerPC released by Night Dive Studios, Incorporated. Shockolate is a cross
platform source port of System Shock, using SDL2. This runs well on OSX, Linux,
and Windows right now, with some missing features that need reviving due to not
being included in the source code that was released.

The end goal for this project is something like what Chocolate Doom is for Doom:
an experience that closely mimics the original, but portable and with some
quality of life improvements including an OpenGL renderer and mod support!
2020-09-07 12:14:33 +00:00

43 lines
980 B
Bash

#!/bin/sh
GAMEDIR="$HOME/.local/share/shockolate"
lower=
lowercase()
{
lower="$(echo `basename "$1"` | tr '[A-Z]' '[a-z]')"
if [ "$lower" != "`basename "$1"`" ] ; then
mv "`dirname "$1"`/`basename "$1"`" "`dirname "$1"`/$lower"
if [ $? -gt 0 ] ; then
echo "error lowercasing $1"
exit
fi
fi
}
if [ ! -e "$GAMEDIR/shaders" ] ; then
mkdir -p "$GAMEDIR"
cp -R ${TRUEPREFIX}/share/shockolate/shaders "$GAMEDIR/"
fi
if [ ! -e "$GAMEDIR/res" ] ; then
mkdir -p "$GAMEDIR/res"
echo "ERROR: please copy directories DATA and SOUND from System Shock Classic to \"$GAMEDIR/res/\""
exit
fi
if [ ! -e "$GAMEDIR/res/generaluser_gs.sf2" ] ; then
ln -sf "${LOCALBASE}/share/generaluser-gs/GeneralUser_GS.sf2" "$GAMEDIR/res/generaluser_gs.sf2"
fi
if [ -n "$(ls "$GAMEDIR/res" | grep [A-Z])" ] ; then
for f in `find -d "$GAMEDIR/res"`; do
if [ "$f" != "$GAMEDIR/res/" ] ; then
lowercase "$f"
fi
done
fi
cd "$GAMEDIR"
${TRUEPREFIX}/share/shockolate/systemshock $*