#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
message "Bienvenue dans le script d'installation du patch 1.11b de DiabloII LOD"
verifier_installation_e "DiabloII"
mkdir -p $HOME/.PlayOnLinux/tmp/
cd $HOME/.PlayOnLinux/tmp
message "Je vais télécharger le patch sur http://www.blizzard.com/.\nCette opération peut nécessiter du temps.\nCliquez sur valider pour commencer."
telecharger "Patientez pendant le téléchargement..." "http://ftp.blizzard.com/pub/diablo2exp/patches/PC/LODPatch_111b.exe"
select_prefixe "$HOME/.PlayOnLinux/wineprefix/DiabloII/"
message "Téléchargement terminé. Installation du patch"
wine ./LODPatch_111b.exe
rm ./LODPatch_111b.exe
message "Le patch a été correctement installé."