Scripts
Script for Prey
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Prey" "2K Games" "http://www.prey.com/flash.html" "GNU_Raziel" "Prey" 1 4
if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_WINE_CHK="La version $WINE_CHK_VERSION de Wine doit être installée, via 'Gerer les version de Wine', pour JOUER correctement a ce jeu, l'installation fonctionne avec n'importe qu'elle version de Wine."
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_WINE_CHK="You must install version $WINE_CHK_VERSION of Wine, with 'Manage Wine versions', in order to PLAY with this game."
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi
WINE_CHK_VERSION="0.9.35"
if [ ! -e $REPERTOIRE/WineVersions/$WINE_CHK_VERSION/ ]; then
message "$LNG_WINE_CHK" "" 2 4
fi
Ask_For_cdrom 3 4
Check_cdrom "setup.exe"
protection_warning
mkdir -p $REPERTOIRE/wineprefix/Prey
cd $REPERTOIRE/wineprefix/Prey
select_prefixe "$(pwd)"
creer_prefixe
cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM d:
cp $CDROM/cdkey.dll $WINEPREFIX/drive_c/windows/system32/
Set_OS "winxp"
wine d:\setup.exe
message "$LNG_WAIT_END" "" 4 4
Set_Managed "On"
Set_DXGrab "On"
echo "[HKEY_CURRENT_USER\Software\Wine\Direct3D]" > $REPERTOIRE/tmp/ddr.reg
echo "\"DirectDrawRenderer\"=\"opengl\"" >> $REPERTOIRE/tmp/ddr.reg
regedit $REPERTOIRE/tmp/ddr.reg
simuler_reboot
creer_lanceur "Prey" "Program Files/Prey" "prey.exe" "Prey.xpm" "Prey"
Set_WineVersion_Assign "$WINE_CHK_VERSION" "Prey"
end_install
exit