#!/bin/bash
#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
#Verifier les dépendences
cfg_check
#Presentation
presentation "Hitman 3 : Contracts" "Io Interactive" "http://www.hitmancontracts.com/" "The_Mystery_Machine" "Hitman3"
# Détection du CDROM
Ask_For_cdrom
Check_cdrom "setup.exe"
# Préparation de Wine
mkdir -p $REPERTOIRE/wineprefix/Hitman3
select_prefixe "$REPERTOIRE/wineprefix/Hitman3"
creer_prefixe
#Lancement de l'installeur
wine $CDROM/setup.exe
#Fin du code du jeu
#Création du lanceur
creer_lanceur "Hitman3" "Program Files/Eidos/Hitman Contracts/" "HitmanContracts.exe"
simuler_reboot
if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
#Conseil
attention "L'option graphique Post-Filter n'est pas supportée par toutes les configurations. Vous pouvez donc la décocher pour résoudre certains bugs graphiques."
else
#Advise in English
attention "The graphical option named Post-Filter is not support by all the configurations. So you can unselect it to solve some graphical bugs."
fi
end_install
exit