startscripts for map editor and g3dviewer will not change the path to gamedir anymore. by this parameters can be passed to them in a much more common way.

This commit is contained in:
Titus Tscharntke 2011-12-20 01:51:38 +00:00
parent 50021e7789
commit 882ded5b58
2 changed files with 2 additions and 10 deletions

View File

@ -34,10 +34,6 @@ MYLOCATION="`readlink -f $0`"
# The game directory is the directory the script resides in
GAMEDIR="`dirname $MYLOCATION`"
# Change to the game dir, and go!
cd $GAMEDIR
echo gamedir [$GAMEDIR]
# export game library directory
test -n "${LIBDIR}" && export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GAMEDIR}/${LIBDIR}"
@ -124,4 +120,4 @@ findMissingSO "$LDCONFIG" "$GAMEDIR/$LIBDIR/${DIRECTFB_LINKEDLIBNAME}" "$DIRECTF
findMissingSO "$LDCONFIG" "$GAMEDIR/$LIBDIR/${FUSION_LINKEDLIBNAME}" "$FUSION_LIBLOOKUP1" "$FUSION_LIBLOOKUP2"
findMissingSO "$LDCONFIG" "$GAMEDIR/$LIBDIR/${DIRECT_LINKEDLIBNAME}" "$DIRECT_LIBLOOKUP1" "$DIRECT_LIBLOOKUP2"
./megaglest_g3dviewer "$1"
"$GAMEDIR/megaglest_g3dviewer" "$1"

View File

@ -34,10 +34,6 @@ MYLOCATION="`readlink -f $0`"
# The game directory is the directory the script resides in
GAMEDIR="`dirname $MYLOCATION`"
# Change to the game dir, and go!
cd $GAMEDIR
echo gamedir [$GAMEDIR]
# export game library directory
test -n "${LIBDIR}" && export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GAMEDIR}/${LIBDIR}"
@ -124,4 +120,4 @@ findMissingSO "$LDCONFIG" "$GAMEDIR/$LIBDIR/${DIRECTFB_LINKEDLIBNAME}" "$DIRECTF
findMissingSO "$LDCONFIG" "$GAMEDIR/$LIBDIR/${FUSION_LINKEDLIBNAME}" "$FUSION_LIBLOOKUP1" "$FUSION_LIBLOOKUP2"
findMissingSO "$LDCONFIG" "$GAMEDIR/$LIBDIR/${DIRECT_LINKEDLIBNAME}" "$DIRECT_LIBLOOKUP1" "$DIRECT_LIBLOOKUP2"
./megaglest_editor "$1"
"$GAMEDIR/megaglest_editor" "$1"