#!/bin/sh
#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
cfg_check
#Definition des variables
LONG_NAME="Tomb Raider Legend"
NAME="TombRaiderLegend"
EDITOR="Eidos Interactive"
WEBSITE="http://www.tombraider.com/legend/"
AUTHOR="malownu - Modifications/Standardisation par GNU_Raziel"
#Presentation
presentation "$LONG_NAME" "$EDITOR" "$WEBSITE" "$AUTHOR" "$NAME"
if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
LNG_WAIT_END="Appuyez sur "Suivant" UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_END="Click on "Next" ONLY when the game installation is finished or you will have to redo the installation."
fi
#Avertissement No-CD
protection_warning
Ask_For_cdrom 1 3
Check_cdrom "setup.exe"
#Preparation de wine
mkdir -p $REPERTOIRE/wineprefix/$NAME
cd $REPERTOIRE/wineprefix/$NAME
select_prefixe "$(pwd)"
creer_prefixe 2 3
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM d:
#Configuration de wine
Set_OS "winxp"
Set_SoundDriver alsa
cd $CDROM
#Lancement de l'installeur
wine $CDROM/setup.exe
message "$LNG_WAIT_END" "" 3 3
simuler_reboot
creer_lanceur "$NAME" "Program Files/Tomb Raider - Legend" "trl.exe" "" "$LONG_NAME"
exit