Scripts
Script for Hitman 2
#!/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 2 : Silent assassin" "Io Interactive" "http://www.hitman2.com/" "The_Mystery_Machine" "Hitman2"
# Détection du CDROM
Ask_For_cdrom
Check_cdrom "setup.exe"
# Préparation de Wine
mkdir -p $REPERTOIRE/wineprefix/Hitman2
select_prefixe "$REPERTOIRE/wineprefix/Hitman2"
creer_prefixe
#Lancement de l'installeur
wine $CDROM/setup.exe
#Fin du code du jeu
#Création du lanceur
creer_lanceur "Hitman2" "Program Files/Eidos Interactive/Hitman 2 Silent Assassin/" "config.exe"
simuler_reboot
if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
#Conseil
attention "Hitman 2 : Silent Assassin supporte mal le mode plein écran, il est donc conseillé de le décocher dans les options en début de jeu"
else
#Advise in English
attention "Hitman 2: Silent Assassin doesn't support full-screen mode, it is advised to unselect it in the option at the beginning of the game"
fi
exit