Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Tomb Raider Anniversary

#!/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"
 
#presentation "Tomb Raider Anniversary" "Eidos Interactive" "http://www.tombraider.com/anniversary" "GNU_Raziel" "TombRaiderAnniversary"
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Eidos Interactive" "http://www.tombraider.com/anniversary" "GNU_Raziel and NSLW" "$PREFIX"
 
#message "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."
#message "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 !"
 
#Ask_For_cdrom
#Check_cdrom "setup.exe"
 
#mkdir -p $REPERTOIRE/wineprefix/TombRaiderAnniversary
#cd $REPERTOIRE/wineprefix/TombRaiderAnniversary
#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:\
 
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_dll_update.zip ]; then
#telecharger "Téléchargement de la mise a jour DirectX9.0c pour Wine..." http://www.threelights.de/page/projects/d3dx9_xx_dll_files/D3DX9_dll_update.zip
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/file_pol/D3DX9_XX_dll_(32Bit_All).zip"
fi
#if [ ! -e $REPERTOIRE/tmp/X_dll_update.zip ]; then
#telecharger "Téléchargement de la mise a jour Xinput et XACT pour Wine..." http://www.threelights.de/page/projects/d3dx9_xx_dll_files/X_dll_update.zip
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/file_pol/X_XX_dll_(32Bit_All).zip"
fi
cd $WINEPREFIX/drive_c/windows/temp/
#unzip $REPERTOIRE/tmp/D3DX9_dll_update.zip
#unzip $REPERTOIRE/tmp/X_dll_update.zip
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"
#wine c:\windows\temp\D3DX9_dll_update\Installer\DXSETUP.exe
#message "L'installation de la mise a jour Xinput et XACT pour Wine va débutée"
#wine c:\windows\temp\X_dll_update\Installer\DXSETUP.exe
 
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
#message "Appuyez sur OK UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
 
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
 
#creer_lanceur "TombRaiderAnniversary" "Program\ Files/Tomb\ Raider\ -\ Anniversary" "tra.exe" "TombRaiderAnniversary.xpm" "Tomb Raider Anniversary"
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
Il n'y a rien à voir ici