Portál AbcLinuxu, 2. ledna 2026 20:25
#!/bin/sh
###############################################################################
#
## LIFLG Startup Script
#
###############################################################################
#
# The game binary
GAME_BINARY="Game.exe"
# Subdirectory
SUBDIR="."
# Which wine do you want to use?
#WINE_NAMES="cedega cvscedega wine winex3 cvswinex winex"
WINE_NAMES="wine"
###############################################################################
## DO NOT EDIT BELOW THIS LINE
###############################################################################
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll/* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $count -gt 100 ]
then
echo "Too many symbolic links"
exit 1
fi
done
GAME_DIR=`dirname $script`
if [ -z "$WINE_EXEC" ]
then
WINE_EXEC=`type -p $WINE_NAMES | head -n 1`
fi
if [ -e "$WINE_EXEC" ]
then
cd $GAME_DIR
cd $SUBDIR
$WINE_EXEC $GAME_BINARY "$@" &
sleep 2 &&
renice 10 -p `pgrep wineserver`
else
echo "Wine(X)/Cedega not in your PATH"
exit 1
fi
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.