Applications

Choose a category

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

Painkiller : Battle out of Hell Patch 1.64

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

message "Bienvenue dans le script d'installation du patch 1.64 pour "Painkiller" et son add-on "Battle Out Of Hell""
message "Vous devez installer "Battle Out Of hell" avant de patcher sinon il faudra re-patcher ensuite"

verifier_installation_e "Painkiller"

mkdir $HOME/PK_Temp
cd $HOME/PK_Temp/
message "Les liens directs n'existant plus pour les fichier, votre navigateur va se lancer en ouvrant les pages des 2 premiers fichiers nécéssaires.\nCela nécéssitera du temps pour tout télécharger (447Mo au total)."
message "Veuillez enregistrez ses fichier dans le répertoire Pk_Temp présent dans votre Home."
message "Le dernier fichier sera télécharger automatiquement dans le dossier Pk_Temp."

if [ -e "/usr/bin/iceweasel" ]; then
/usr/bin/iceweasel "http://files.filefront.com/Painkiller_v161_Patch/;3795715;;/fileinfo.html" "http://files.filefront.com/Painkiller_Patch_Update_v162/;3816674;/fileinfo.html"

else if [ -e "/usr/bin/mozilla-firefox" ]; then
/usr/bin/mozilla-firefox "http://files.filefront.com/Painkiller_v161_Patch/;3795715;;/fileinfo.html" "http://files.filefront.com/Painkiller_Patch_Update_v162/;3816674;/fileinfo.html"

else if [ -e "/usr/bin/konqueror" ]; then
/usr/bin/konqueror "http://files.filefront.com/Painkiller_v161_Patch/;3795715;;/fileinfo.html" "http://files.filefront.com/Painkiller_Patch_Update_v162/;3816674;/fileinfo.html"

else if [ -e "/usr/bin/konqueror" ]; then
/usr/bin/konqueror "http://files.filefront.com/Painkiller_v161_Patch/;3795715;;/fileinfo.html" "http://files.filefront.com/Painkiller_Patch_Update_v162/;3816674;/fileinfo.html"

else if [ -e "/usr/bin/epiphany-browser" ]; then
/usr/bin/epiphany-browser "http://files.filefront.com/Painkiller_v161_Patch/;3795715;;/fileinfo.html" "http://files.filefront.com/Painkiller_Patch_Update_v162/;3816674;/fileinfo.html"

else
/usr/bin/firefox "http://files.filefront.com/Painkiller_v161_Patch/;3795715;;/fileinfo.html" "http://files.filefront.com/Painkiller_Patch_Update_v162/;3816674;/fileinfo.html"
fi
fi
fi
fi
fi

message "Cliquez sur OK une fois les 2 premiers fichiers téléchargés et mis dans le dossier Pk_Temp."
attendre "Patientez pendant le téléchargement...\nCette opération peut prendre quelques minutes selon la vitesse de votre connexion." "wget -c http://www.dreamcatchergames.com/dci/support/media/Painkiller_1.64_update.exe -q"

select_prefixe "$HOME/.PlayOnLinux/wineprefix/Painkiller"
message "Téléchargement terminé. Installation du patch"

wine ./Painkiller_Patch_161_UP.exe
wine ./Painkiller_Update_1.62.exe
wine ./Painkiller_1.64_update.exe

rm -r $HOME/PK_Temp
message "Le patch a été correctement installé"