#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Painkiller : Battle Out Of Hell" "Dreamcatcher" "http://www.painkillergame.com/index2.php" "GNU_Raziel" "Painkiller_BattleOutOfHell"
verifier_installation_e "Painkiller"
Ask_For_cdrom
Check_cdrom "Painkiller_BOOH.exe"
TEMP="$HOME/.PlayOnLinux/tmp/BattleOutOfHell"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $TEMP
cd $REPERTOIRE/wineprefix/Painkiller
select_prefixe "$(pwd)"
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
message "Veuillez monter le CDROM 2, puis cliquez sur valider."
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $TEMP d:
wine d:\Painkiller_BOOH.exe
message "Appuyez sur OK UNIQUEMENT quand l'installation du jeu sera terminée sous peine de devoir recommencer l'installation."
simuler_reboot
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:
message "Installation terminée"
exit