Magic number : 45
#!/bin/bash
# Date : (2009-05-29 10-00)
# Last revision : (2009-05-29 10-00)
# Wine version used : N/A
# Distribution used to test : N/A
# Author : NSLW
# Licence : Retail
#Translated from V2 to V3
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Tomb Raider Anniversary"
PREFIX="TombRaiderAnniversary"
wget http://upload.wikimedia.org/wikipedia/en/thumb/c/cc/TombRaiderAnniversary.jpg/256px-TombRaiderAnniversary.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_presentation "$TITLE" "Eidos Interactive" "http://www.tombraider.com/anniversary" "GNU_Raziel and NSLW" "$PREFIX"
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
cd "$WINEPREFIX/dosdevices"
ln -s $CDROM d:
cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
echo "\"d:\"=\"cdrom\"" >> cdrom.reg
regedit cdrom.reg
POL_SetupWindow_message "Wait 5 seconds then click next" "$TITLE"
cd $REPERTOIRE/tmp/
if [ ! -e "$REPERTOIRE/tmp/D3DX9_XX_dll_(32Bit_All).zip" ]; then
POL_SetupWindow_download "Téléchargement de la mise a jour DirectX9.0c pour Wine..." "$TITLE" "http://mulx.playonlinux.com/files/D3DX9_XX_dll_(32Bit_All).zip"
fi
if [ ! -e "$REPERTOIRE/tmp/X_XX_dll_(32Bit_All).zip" ]; then
POL_SetupWindow_download "Téléchargement de la mise a jour DirectX9.0c pour Wine..." "$TITLE" "http://mulx.playonlinux.com/files/X_XX_dll_(32Bit_All).zip"
fi
cd $WINEPREFIX/drive_c/windows/temp/
unzip "$REPERTOIRE/tmp/D3DX9_XX_dll_(32Bit_All).zip"
unzip "$REPERTOIRE/tmp/X_XX_dll_(32Bit_All).zip"
#message "L'installation de la mise a jour DirectX9.0c pour Wine va débutée"
Set_OS "winxp"
POL_SetupWindow_wait_next_signal "L'installation de la mise a jour DirectX9.0c pour Wine va débutée" "$TITLE"
wine "c:\windows\temp\D3DX9_XX_dll_(32Bit_All)\Installer\DXSETUP.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_wait_next_signal "L'installation de la mise a jour Xinput et XACT pour Wine va débutée" "$TITLE"
wine "c:\windows\temp\X_XX_dll_(32Bit_All)\Installer\DXSETUP.exe"
POL_SetupWindow_detect_exit
cd "$CDROM"
wine d:\setup.exe
POL_SetupWindow_message "Appuyez sur OK UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation." "$TITLE"
cd "$HOME"
Set_Managed "On"
Set_DXGrab "On"
#simuler_reboot
POL_SetupWindow_reboot
POL_SetupWindow_make_shortcut "$PREFIX" "Program Files/Tomb Raider - Anniversary" "tra.exe" "TombRaiderAnniversary.xpm" "$TITLE" "" ""
#message "Installation terminée."
POL_SetupWindow_message "Installation terminée." "$TITLE"
POL_SetupWindow_message_image "ATTENTION ! La protection CD/DVD de ce jeu ne fonctionne pas correctement avec wine.\nVous ne pourrez donc pas jouer a ce jeu sans circonvenir cette protection, ce qui est ILLEGAL !\nPlayOnLinux ne pourra pas être tenu pour responsable de VOTRE décision." "Note about copy protection" "/usr/share/playonlinux/themes/tango/warning.png"
POL_SetupWindow_message_image "En AUCUN CAS vous ne devrez demander ni parler de pratiques illégales sur le Site de PlayOnLinux sous peine d'être immédiatement et définitivement BANNI !" "Note about copy protection" "/usr/share/playonlinux/themes/tango/warning.png"
POL_SetupWindow_Close
exit